Week Two Flashcards
What is UNIX?
Unix is an operating System.
- Controls Hardware
- Everything is a file
- Unix is also a specification
Explain the Unix Philosophy
- Make each program do ONE thing well
- Expect output of one program to be the input of another program
- Design + build software to be tried EARLY
- Use tools to lighten a programming task
- No output is GOOD. Output means an error.
Standard Components found in an operating system?
Kernel, System Call interface, User Interface.
Default standard Input/Output
stdin (keyboard, standard input) stdout (screen, standard output) sterr (screen, standard error)
Does unix have segmented directories?
Unix has no segmented directories, for example, in a Windows environment, you might have C, D drive. Linux is a tree-based system.
What is a ‘here’ document?
A ‘here’ document is used to redirect output. This ‘<
What is a ‘hard’ link?
Every document has at least one hard link and that is to itself. Hard links refer to the physical location of a file.
What is a ‘soft’ link?
A soft link is similar to a shortcut in windows. It is a ‘symbolic link’.
What kind of systems can Linux run on?
Linux can run on a wide variety of hardware, including arm systems, raspberry pi & Desktop computers.
Acronyms GUI / CLI?
Graphical User Interface | Command Line Interface
Is Linux a Unix?
Technically, no. Opengroup oversees licensing for Unix. Posix is the standard to which it must adhere to be ‘unix’ compliant. So while Linux is Posix compliant, it is not to be ‘unix’ licensed.
What is POSIXs?
POSIX is the standard used to specify if something is unix compliant.
What is the Unix kernel?
The unix kernel is loaded into memory during the booting process and is always residing in physical memory. It is a process that must always be running. It is responsible for:
- CPU scheduling
- Memory for processes
- Managing file systems
- Interacting with devices
What is dev/null
It is a void - black hole
When should cat be used?
If cat is not necessary, do not use it. It takes up extra resoucres.