Lecture 1 Flashcards
How many namespaces do operating systems like Windows and Unix have?
Windows can have many. i.e. C:\, D:\, etc.
Unix has 1. /
What is a path name?
A description of where a file can be found.
In Unix example: dir1/dir2/dir3/file.c
What are some special directories in the Unix root?
/bin
/sbin
/lib
/usr
/etc
/home
/boot
/dev
/opt
/var
/tmp
/proc
/bin directory.
Where most executables or binaries are found. Things like gcc or vim. Essential for operation of the system itself.
Home directory shorthand.
~/
Know this well.
/sbin directory.
System binaries that should only be executed by the root (admin) user.
/lib directory.
Libraries.
/usr directory.
User binaries, libraries, etc. Meant for the end-user and not required for the system itself.
/etc directory.
Editable Text Configurations. Where configuration files are found.
/home directory.
User home (or personal) directories found here.
/boot directory.
Files needed to boot the system like the operating system kernel.
/dev directory.
Device files. Allows interface with I/O devices.
/opt directory.
Optional software located here. Rarely used.
/var directory.
Variable files that change as the system operates. Like log files.
/tmp directory.
Temporary files not persistent between system reboots.
/proc directory.
An imaginary directory created by the kernel to keep track of a currently running process.