Linux Root Directories Flashcards

(19 cards)

1
Q

What does /bin contain?

A

Essential command binaries that need to be available in single-user mode, including to bring up the system or repair it, for all users (e.g., cat, ls, cp).

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

What is single user mode?

A

The concept is broader than just linux but what I am interested in here is the idea that we are booting into a mode with a single root user and minimal tooling. Think of it as a recovery mode.

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

What does /boot contain?

A

Boot loader files. Things like kernels and intird (initial ramdisk).

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

What does /etc contain?

A

System wide configuration files. e.g. hosts

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

What does /home contain?

A

User files and user specific configuration files

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

What does /dev contain?

A

Device files

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

What is a device file?

A

An interface to a device driver. They allow applications to interact with a device by using its device driver via standard input/output calls.

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

What does /lib contain?

A

The /lib directory contains those shared library images needed to boot the system and run the commands in the root filesystem, ie. by binaries in /bin and /sbin.

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

What does /media contain?

A

Subdirectories which are used as mount points for removable media. E.g. Floppy disks

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

What does /mnt contain?

A

Temporarily mounted file systems. This can be things like network storage for example.

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

What does /opt contain?

A

This is where optional software packages are placed. This is fairly rarely used these days.

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

What does /root contain?

A

This is the home directory for the root user. This is optional.

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

What does /proc contain?

A

This contains files representing process and system information.

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

What does /run contain?

A

Run time variable information. This is data that describes the system since it was booted. Files in this area mush be cleared at the beginning of a boot sequence.

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

What does /sbin contain?

A

System binaries. To contrast this with user. System binaries are commands only for system administration.

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

What does /srv contain?

A

Sometimes this gets used for serving files. Sometimes this is done with a directory for each protocol. E.g. ftp, rsync, … This is most often though isn’t used and will be blank.

17
Q

What does /tmp contain?

A

Made available for programs that require a place to store temporary files. There should be no assumption that files are preserved here between invocations.

18
Q

What is /usr?

A

usr is Unix System Resources. Its the place where most programs reside. There is a another area This is where programs not essential for single user mode reside.

19
Q

What is in /var?

A

System specific variable files. This includes things like logs, spool directories, and some temporary files. It tends to also be where web servers put their files.