Skip to the content.

Chapter 4. Introduction to File System [4 Hrs (Assumed)]

Key directories in linux are:

References

Filesystem Architecture

Absolute and relative path

Absolute path is the location of file or directory specified from the root directory.

Relative path is the location of file or directory specified from the current directory.

Useful commands

XFS vs ext4

XFS:

ext4:

Reference: https://blog.purestorage.com/purely-educational/xfs-vs-ext4-which-linux-file-system-is-better/

Utilities:

fsck: It refers to FileSystem Consistency checK.

Syntax:

    fsck [OPTIONS] path/to/device

Options:

blkid: It is used to locate and print block device’s attributes. Syntax:

    blkid path/to/device

lsblk: List block devices. Syntax

    lsblk [OPTIONS] [device]

if device is omitted, it shows all block devices.