Check Disk Usage Linux: df Command Guide

You can use the df command to check the disk space usage in a Linux system. This command displays the filesystem usage, including used space, available space, and used percentage.

Here are some commonly used options for the df command:

  1. -h: Display disk space size in a human-readable format.
  2. -T: Display the file system type.
  3. -i: Display the usage of inodes.
  4. Show all file systems, including system reserved file systems.

To display the disk space usage of all file systems, you can open the terminal and enter the following command:

df -h

This will display the disk space usage of each file system, including the total size, used space, available space, and mount point.

To view the disk space usage of a specific file system, you can specify the mount point of the file system as a parameter. For example, to check the usage of the root file system, you can enter the following command:

df -h /

This will display the disk space usage of the root file system.

bannerAds