Directory Structure Flashcards

(18 cards)

1
Q

/

A

The Root Directory

• Contains everything on a Linux system, the “root” of all the entire structure

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

/bin

A

Essential User Binaries
• Contains programs which must be present for important system programs and utilities to use
• Programs such as Firefox are stored in /usr/bin

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

/boot

A

Static Boot Files
• Contains the files needed to boot the system
• The boot loaders configuration files are in /etc

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

/dev

A

Device Files
• Contains a number of special files that represent devices
• Also contains virtual devices

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

/etc

A

Configuration Files
• Contains system-wide configuration files
• User-specific configuration files are stored in each user’s home directory

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

/home

A

Home Folders
• Contains a home folder for each user, containing user-specific data and configuration files
• Each user only has write access to their own folder, until they become the root user

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

/lib

A

Essential Shared Libraries
• Contains libraries needed by the essential binaries in the /bin and /sbin folder
• Libraries needed by the binaries in the /usr/bin folder are located in /usr/lib

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

/media

A

Removable Media
• Contains subdirectories where removable media devices inserted into the computer are mounted
• The system automatically creates a directory in here when media is inserted

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

/mnt

A

Temporary Mount Points
• Traditionally where system administrators mounted temporary file systems while using them
• However, you can mount other file systems anywhere

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

/opt

A

Optional Packages
• Contains subdirectories for optional software packages
• It’s commonly used by proprietary software that doesn’t obey the standard file system hierarchy

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

/proc

A

Kernel & Process Files
• Similar to the /dev directory in that it contains special files
• It contains files that represent system and process information

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

/root

A

Root Home Directory
• Home of the root user
• Instead of being located at /home/root, it is at /root

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

/run

A

Application State Files
• Gives applications a standard place to store transient files they require like sockets and process IDs
• These files can’t be stored in /tmp because files in /tmp may be deleted

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

/sbin

A

System Administration Binaries
• Similar to /bin, containing essential binaries
• These are generally intended to be run by the root user for system administration

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

/srv

A

Service Data
• Contains data for services provided by the system
• If you were using the Apache HTTP server to serve a website, you would store the website files in a folder in here

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

/tmp

A

Temporary Files
• Applications store temporary files in this directory
• These files are generally deleted whenever your system is restarted and may be deleted at anytime by utilities

17
Q

/usr

A

User Binaries & Read-Only Data
• Contains applications and files used by users, as opposed to ones used by the system
• Locally compiled applications install here by default to avoid fucking up the rest of the system

18
Q

/var

A

Variable Data Files
• The writeable counterpart to /usr
• Log files and anything else that would normally be written to /usr during normal operation are written here