Understading Linux File System Flashcards
What is always the first directory in Linux?
The root directory
What is the purpose of the /bin directory?
It contains binaries
What is the purpose of the /sbin directory?
It contains system administrator binaries
What is the purpose of the /var directory?
A place for files that may change often
What is the purpose of the /usr directory?
It contains user binaries
What is the purpose of the /opt directory?
It contains software that were installed without the package manager
What is the purpose of the /etc directory?
It contains system configuration files
What is the purpose of the /dev directory?
It contains files that represent hardware
What is the purpose of the /lib directory?
It contains essential binaries for basic operations and booting
What is the purpose of the /tmp, /var/tmp directory?
It contains temporary files
What is a mount-point?
It is a partition that has been assigned to a specific directory
What is the purpose of the lost+found directory?
Its purpose is to serve as a repository for recovering orphaned or corrupted files with system checks
What is the representation of the block device files with ls command?
b
What is the representation of the character device files with ls command?
c
What is the representation of the named pipe files with ls command?
p
What is the representation of the socket files with ls command?
s
What are the different regular files?
- Readable file
- Binary file
- Image file
- Compressed file
What is a directory?
A file that contains files and sub-directories
What are block device files?
They are hardware files
What are character device files?
Provide a serial stream of input or output
What are pipe files?
It allows two separate processes to communicate
What are symbolic link files?
These are links to other files
What are socket files?
Pass information between applications