1.10 Filesystem Hierarchy Standard (FHS) Flashcards
What are the benefits to the Filesystem Hierarchy Standard (FHS)?
Provides Linux software developers and Linux system administrators with a standard directory structure for filesystems. This ensures that there’s consistency between various Linux systems and distributions.
Why does a Linux system use a more structured file system than the Windows OS?
The structured filesystem:
- Allows software to predict where to place configuration files
- Allows system adminisrators and users to predict where to find system configuration files and other objects they need to work with.
In Windows, the GUI is used to navigate these things and makes the underlying file system structure less important.
What should you be aware of when saving files in the /tmp directory?
Files stored in the /tmp directory are ephemeral; the system periodically purges old files in this directory.
Which directory is specified by Filesystem Hierarchy Standard (FHS) to hold temporarily mounted filesystems?
The /mnt directory is specified by the FHS to hold temporarily-mounted filesystems.
What are the two different types of device files found in the /dev directory?
- Character-oriented device files - devices that use data sequentially, like a printer, mouse, or tape drive
- Block-oriented device files - devices that manage data in blocks, like floppy disk and hard disks
Which device files would represent the first and second floppy drives?
- /dev/fd0
- /dev/fd1
Which device files would represent the first and second hard drives?
- /dev/sda
- /dev/sdb
Which device file would represent the CDROM drive?
/dev/scd0
Which device files would represent the serial and parallel ports, respectively?
- /dev/ttyS0
- /dev/lp0
What is the Filesystem Hierarchy Standard (FHS)?
The Filesystem Hierarchy Standard (FHS) governs the unified file system for Linux systems by defining a standard set of directories, subdirectories, and files. FHS is a subset of the Linux Standards Base (LSB).
What is the Linux Standards Base (LSB)?
The Linux Standards Base (LSB) is an organization and a set of guidelines for promoting standards to increase Linux distribution compatibility.
What does the / character represent with respect to the filesystem hierarchy?
The / character represents the root directory of the Linux system. All directories are below the / (root directory) of the system.
What does the /bin directory contain?
The /bin directory contains binary commands that are available to all users.
What does the /boot directory contain?
The /boot directory contains the kernel and bootloader files.
What does the /dev directory contain?
The /dev directory contains device files that represent the devices used by the system, such as a hard drive, mouse, and printer.