1.10 Filesystem Hierarchy Standard (FHS) Flashcards

2
Q

What are the benefits to the Filesystem Hierarchy Standard (FHS)?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why does a Linux system use a more structured file system than the Windows OS?

A

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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What should you be aware of when saving files in the /tmp directory?

A

Files stored in the /tmp directory are ephemeral; the system periodically purges old files in this directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which directory is specified by Filesystem Hierarchy Standard (FHS) to hold temporarily mounted filesystems?

A

The /mnt directory is specified by the FHS to hold temporarily-mounted filesystems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the two different types of device files found in the /dev directory?

A
  1. Character-oriented device files - devices that use data sequentially, like a printer, mouse, or tape drive
  2. Block-oriented device files - devices that manage data in blocks, like floppy disk and hard disks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which device files would represent the first and second floppy drives?

A
  • /dev/fd0
  • /dev/fd1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which device files would represent the first and second hard drives?

A
  • /dev/sda
  • /dev/sdb
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which device file would represent the CDROM drive?

A

/dev/scd0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which device files would represent the serial and parallel ports, respectively?

A
  • /dev/ttyS0
  • /dev/lp0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Filesystem Hierarchy Standard (FHS)?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Linux Standards Base (LSB)?

A

The Linux Standards Base (LSB) is an organization and a set of guidelines for promoting standards to increase Linux distribution compatibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the / character represent with respect to the filesystem hierarchy?

A

The / character represents the root directory of the Linux system. All directories are below the / (root directory) of the system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the /bin directory contain?

A

The /bin directory contains binary commands that are available to all users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the /boot directory contain?

A

The /boot directory contains the kernel and bootloader files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the /dev directory contain?

A

The /dev directory contains device files that represent the devices used by the system, such as a hard drive, mouse, and printer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does the /etc directory contain?

A

The /etc directory contains configuration files specific to the system.

18
Q

What does the /home directory contain?

A

The /home directory contains the user home directories (by default).

19
Q

What does the /lib directory contain?

A

The /lib directory contains shared program libraries that are used by programs in the /bin and /sbin directory. It also contains kernel modules.

20
Q

What does the /media directory contain?

A

The /media directory contains the /cdrom and /floppy directories.

21
Q

What does the /mnt directory contain?

A

The /mnt directory is an empty directory, and is often used for temporarily mounted filesystems.

22
Q

What does the /opt directory contain?

A

The /opt directory contains the additional programs on the system.

23
Q

What does the /proc directory contain?

A

The /proc directory contains information about the system state and processes. This is not a physical directory; it is a pseudo file system that is dynamically created whenever it is accessed.

24
Q

What does the /root directory contain?

A

The /root directory is the root user’s home directory.

25
Q

What does the /sbin directory contain?

A

The /sbin directory contains system binary commands.

26
Q

What does the /srv directory contain?

A

The /srv directory contains files for services such as HTTP and FTP servers.

27
Q

What does the /sys directory contain?

A

The /sys directory contains the sysfs virtual filesystem which displays information related to hardware on your system, such as devices and drivers.

28
Q

What does the /tmp directory contain?

A

The /tmp directory contains temporary files created by programs during system use.

29
Q

What does the /usr directory contain?

A

The /usr directory contains system commands and utilities.

30
Q

What does the /var directory contain?

A

The /var directory contains data files that change constantly.

31
Q

What does the /var/mail directory contain?

A

The /var/mail directory contains e-mail in mailbox files. This is sometimes /var/spool/mail.

32
Q

What does the /var/spool directory contain?

A

The /var/spool directory contains files waiting for processing, such as print jobs or scheduled tasks.

33
Q

What does the /var/www directory contain?

A

The /var/www directory contains www or proxy cache files.

34
Q

Which directory stores the man pages?

A

The /usr/share/man directory contains the man pages.

35
Q

What does the /usr/share/man directory contain?

A

The /usr/share/man directory contains the man pages.