Creating and Mounting File Systems Flashcards

1
Q

What command lists all open files and the process accessing them in the provided directory?

A

■ lsof

■ usage: lsof

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

Where are USB and other removable media mounted?

A

■ /run/media//

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

What two programs are used to create/delete/edit file systems?

A

■ fdisk (uses MBR)

■ gdisk (uses GPT)

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

What utility forces a reread of a disks partition table?

A

■ partprobe

■ usage: partprobe `

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

What utility is used to format a swap partition?

A

■ mkswap

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

What utility is used to activate a swap partition for use?

A

■ swapon

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

What utility is used to deactivate a swap partition?

A

■ swapoff

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

How is a swap partition given priority over another?

A

■ Add ‘pri=’ in place of ‘defaults’ in /etc/fstab

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