Linux Directory Structure Flashcards

Understand what should go into which directory

1
Q

What should go in the /bin directory

A

Executable binary programs

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

What should go in the /etc directory

A

System configuration file

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

Where do we put the optional or third party software?

A

/opt

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

Where is temporary data stored?

A

/tmp, data is cleared on reboot in this folder

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

What should go in the /usr directory?

A

User related program

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

Where is variable data like logs stored?

A

/var

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

What goes into the /home directory?

A

Data related to the users of the system

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

What should go in the /media directory?

A

The removable media devices that are mount

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

Where are system libraries stored?

A

/lib

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

Is there a 64 bit version of /lib?

A

Yes, /lib64

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

Where do we place the shared file systems?

A

/export

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

What is the home directory of the root user?

A

/root

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

If we are going to mount an external file system, where should we mount it?

A

/mnt

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

What should go in the /sbin directory?

A

System administration binaries

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

What should go in the /srv directory?

A

Data which is served by the system, /srv/www is very common

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

When we install a software in a Linux system, where should we find the binary files of that program?

A

There are multiple places where we can find those, it depends, it might be, /usr/bin, /usr/local/bin. /usr/local//bin. It also can be in /opt//bin

In general we should try /usr, /usr/local or /opt