Filesystem Basics Flashcards

1
Q

What kind of filesystems are supported by Linux?

A
  • Conventional disk filesystems, like ext3, NTFS, vfat
  • Flash storage filesystems, like ubifs, jffs2
  • Database filesystems
  • special purpose filesystems, like sysfs, tmpfs, debugfs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a partition?

A
  • dedicated subsection of physical storage media
  • “fixed area” to be treated as a whole
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a filesystem?

A
  • method of storing and accessing files
  • can span more than one partition if a symbolic link is used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Filesystem Hierarchy Standard (FHS)

A
  • standard layout that says how important files are to be stored by linux systems
  • maintained by Linux Foundation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where can one find more information about the FHS?

A

https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf

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

How are multiple drives and partitions mounted?

A
  • as directories in a single filesystem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where are removable media like usb drives shown in the filesystem?

A

Mounted at
/run/media/yourusername/disklabel
for recent distros

/media for older distros

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

What folders are part of the FHS?

A

/bin/
/boot/
/dev/
/etc/
/home/
/lib/
/media/
/mnt/
/opt/
/sbin/
/srv/
/tmp/
/usr/
/var/
/root/
/proc/

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

What is the following directory used for?
/bin/

A

Essential user command binaries

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

What is the following directory used for?
/boot/

A

Static files of the boot loader

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

What is the following directory used for?
/dev/

A

device files

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

What is the following directory used for?
/etc/

A

Host-specific system configuration

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

What is the following directory used for?
/home/

A

User home directories

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

What is the following directory used for?
/lib/

A

Essential shared libraries and kernel modules

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

What is the following directory used for?
/media/

A

Mount point for removable media

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

What is the following directory used for?
/mnt/

A

mount point for a temporarily mounted filesystem

16
Q

What is the following directory used for?
/opt/

A

Add-on application software packages

17
Q

What is the following directory used for?
/sbin/

A

system binaries

18
Q

What is the following directory used for?
/srv/

A

data for services provided by this system

19
Q

What is the following directory used for?
/tmp/

A

temporary files

20
Q

What is the following directory used for?
/usr/

A

(multi-)user utilities and applications

21
Q

What is the following directory used for?
/var/

A

variable files

22
Q

What is the following directory used for?
/root/

A

home directory for the root user

23
Q

What is the following directory used for?
/proc/

A

virtual filesystem documenting kernel and process status as text files

24
Q

Are Linux filesystems case-sensitive?

A

Yes
/boot, /Boot and /BOOT are three different directories

25
Q

What difference is usually made between core processes needed for system operation and other programs?

A
  • other programs are usually stored in /usr (like user)