Typical Unix Directory Structure Flashcards

1
Q

Where does the Linux file system begin?

A

The root directory (“ / “)

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

What are the sub-directories of the root?

A

/bin , /etc, /sbin, /usr, /var, /dev, /home, /lib, /mnt, /opt, /proc, /root

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

What is the root directory (“ / “)?

A

The root is the logical beginning of the Linux file system and contains the entirety of your operating system.

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

/bin

A

contains most of your binary files, typically for the Linux terminal commands and core utilities such as cd, pwd, ls, and so on.

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

Where is firefox located?

A

/usr/bin

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

/boot

A

The directory where all the files needed to boot the system are kept

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

What directory do most people like to keep on its own separate partition?

A

/boot

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

/dev

A

The where all of your physical devices are mounted such as your hard disk, USB drive etc.

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

Where is your system hard drive mounted?

A

/dev/sda

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

Where can a USB thumb drive be mounted?

A

/dev/sde

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

/etc

A

The directory where configuration files are stored.

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

/home

A

The directory where all of your personal files are located such as The Desktop, Documents, Photos and Videos.
For non-root users

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

What is the default location that the terminal points to when you open a command-line terminal?

A

/home/username folder (Unless you have changed the default location)

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

/lib

A

The directory where the libraries are kept.

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

What are libraries?

A

Libraries are the files needed for your programs to work on Linux.

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

What makes Linux installation more lightweight than Windows?

A

Because libraries can be shared between different programs in Linux while in Windows every program has its own library installed even if it already exists in another program.

17
Q

/media

A

Another place where external devices such as optical drives and USB drives can be mounted. (varies between distros)

18
Q

/mnt

A

A placeholder folder which is used for mounting other folders or drives.

19
Q

/opt

A

Optional software for your system that is not already managed by your distro’s package manager.

20
Q

/proc

A

The “processes” folder where a lot of system information is represented as files.

21
Q

/root

A

Similar to /home but this is specifically for the root user called superuser

22
Q

/sbin

A

Similar to /bin but this is for certain commands that can be run only by the root user or superuser

23
Q

/tmp

A

The directory where temporary files are stored and are usually deleted on shutdown.

24
Q

/usr

A

Contains files and utilites that are shared between users such as users programs, library files, docs, etc.

25
Q

/var

A

The directory where variable data is kept, usually system logs but can also include other types of data as well.