Tag Archives: linux disk space command

Ten Simple Commands to Check Your Disk Space

Disk Usage

The ‘du’ command in Linux is a standard Unix/Linux command to check the capacity of disk used by files and directories on a machine. There are several parameter options in which the du command can be utilized to get the results in many formats. Additionally, the du command can be used in a recurrent manner.

Below are the ten useful ‘du’ commands with their examples that will help you to calculate the disk space occupied by the files and directories in Linux.

  1. To calculate the disk space summary of a /home/bodhost directory tree along with its sub directories, enter the below command –

The output displays the number of disk blocks in the /home/bodhost directory as well as its sub-directories. read more