Understading Linux File System Flashcards

1
Q

What is always the first directory in Linux?

A

The root directory

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

What is the purpose of the /bin directory?

A

It contains binaries

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

What is the purpose of the /sbin directory?

A

It contains system administrator binaries

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

What is the purpose of the /var directory?

A

A place for files that may change often

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

What is the purpose of the /usr directory?

A

It contains user binaries

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

What is the purpose of the /opt directory?

A

It contains software that were installed without the package manager

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

What is the purpose of the /etc directory?

A

It contains system configuration files

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

What is the purpose of the /dev directory?

A

It contains files that represent hardware

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

What is the purpose of the /lib directory?

A

It contains essential binaries for basic operations and booting

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

What is the purpose of the /tmp, /var/tmp directory?

A

It contains temporary files

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

What is a mount-point?

A

It is a partition that has been assigned to a specific directory

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

What is the purpose of the lost+found directory?

A

Its purpose is to serve as a repository for recovering orphaned or corrupted files with system checks

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

What is the representation of the block device files with ls command?

A

b

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

What is the representation of the character device files with ls command?

A

c

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

What is the representation of the named pipe files with ls command?

A

p

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

What is the representation of the socket files with ls command?

A

s

17
Q

What are the different regular files?

A
  • Readable file
  • Binary file
  • Image file
  • Compressed file
18
Q

What is a directory?

A

A file that contains files and sub-directories

19
Q

What are block device files?

A

They are hardware files

20
Q

What are character device files?

A

Provide a serial stream of input or output

21
Q

What are pipe files?

A

It allows two separate processes to communicate

22
Q

What are symbolic link files?

A

These are links to other files

23
Q

What are socket files?

A

Pass information between applications