File System Flashcards

1
Q

What is udevd?

A

Daemon that deals with device events, searches for drivers and gives them a mount point in the file system at /dev

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

What is the command to report file system usage?

A

df

i. e df -ah
* shows all mount points in the file system

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

Where are configuration files stored?

A

/etc

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

Where are binaries (programs) stored in the file system?

A

/bin
/sbin
*/sbin contains programs not usually executed by normal users

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

Where are temporary files stored?

A

/tmp

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

Where is the location of the home folder for root?

A

/root

exception to being stored in /home

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

What is the location of libraries?

A

/lib

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

What is the command to get help with the system hierarchy?

A

man hier

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

How are hard drives named under /dev?

A

sda - first hard disk
sda1 - first hard disk, first partition
sdb2 - second hard disk, second partition

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

Where are system logs stored?

A

/var/log

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

What type of file is denoted with permissions brw-rw—-

A

block device file, as in block hard disk device

first letter b denotes this

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

What type of file is denoted with permissions crw-r—–

A

character device file

i.e mouse or keyboard

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

What is a block device file?

A

A place where the driver communicates with the corresponding device hardware

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

What is a difference between character device and block device files?

A

Block device files buffer on the kernel, stores dump of memory for device to access
Character device file go straight to the device which handles its own buffering

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

What are the 7 file types?

A
file
directory
character device file
block device file - interface for hardware
symbolic link - interface for hardware
named pipes - legacy
local domain sockets - legacy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the command to list block devices?

A

lsblk

17
Q

What are the commands to write an image to usb?

A
unmount /dev/sda1
dd if=filename.iso of=/dev/sda bs=4M
sync
udisks --unmount /dev/sda
*sda is the usb location in this example
18
Q

What is the command to push cached writes to persistent storage?

A

sync

19
Q

What is the command to hid a file?

A

mv file .file