Journeyman Flashcards

1
Q

How and when would you make a file system

A

On a newly partitioned disk or in very specific circumstances
mkfs -t ext4 “/dev/sdb2”

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

How would you mount a file system?

A

mount -t ext4 “/dev/sdb2” “/nameofnewdir”

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

How would you unmount a device from a mount point?

A

umount “/nameofmountpoint”

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

Where permanent filesystems are mounted?

A

/etc/fstab

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

How would you see the current utilization of your currently mounted file systems?

A

df -h(-h to make it easier to read)

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

How would you see how much disk usage your current directory has?

A

du -h

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

How would you check the integrity of a file system?

A

fsck

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

What is an inode?

A

an entry in the inode table that lists basically everything about a file.

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