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”
2
Q
How would you mount a file system?
A
mount -t ext4 “/dev/sdb2” “/nameofnewdir”
3
Q
How would you unmount a device from a mount point?
A
umount “/nameofmountpoint”
4
Q
Where permanent filesystems are mounted?
A
/etc/fstab
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)
6
Q
How would you see how much disk usage your current directory has?
A
du -h
7
Q
How would you check the integrity of a file system?
A
fsck
8
Q
What is an inode?
A
an entry in the inode table that lists basically everything about a file.