File System Flashcards
What is udevd?
Daemon that deals with device events, searches for drivers and gives them a mount point in the file system at /dev
What is the command to report file system usage?
df
i. e df -ah
* shows all mount points in the file system
Where are configuration files stored?
/etc
Where are binaries (programs) stored in the file system?
/bin
/sbin
*/sbin contains programs not usually executed by normal users
Where are temporary files stored?
/tmp
Where is the location of the home folder for root?
/root
exception to being stored in /home
What is the location of libraries?
/lib
What is the command to get help with the system hierarchy?
man hier
How are hard drives named under /dev?
sda - first hard disk
sda1 - first hard disk, first partition
sdb2 - second hard disk, second partition
Where are system logs stored?
/var/log
What type of file is denoted with permissions brw-rw—-
block device file, as in block hard disk device
first letter b denotes this
What type of file is denoted with permissions crw-r—–
character device file
i.e mouse or keyboard
What is a block device file?
A place where the driver communicates with the corresponding device hardware
What is a difference between character device and block device files?
Block device files buffer on the kernel, stores dump of memory for device to access
Character device file go straight to the device which handles its own buffering
What are the 7 file types?
file directory character device file block device file - interface for hardware symbolic link - interface for hardware named pipes - legacy local domain sockets - legacy