Linux Check Disk Space
The df command stands for disk free and it shows you the amount of space taken up by different drives.
Linux check disk space. How to check disk space on linux from the command line df. The df command is the tool i first used to discover drive space on linux way back in the 1990s. Btrfs fi df device show disk space usage information for a btrfs.
The fdisk command can display the partitions and details like file system type. Btrfs fi df device show disk space usage information for a btrfs based mount point file system. To display information about disk drives in human readable format kilobytes megabytes gigabytes and so on invoke the df command with the h option.
You can check your disk space simply by opening a terminal window and entering the following. Df this reports the amount of disk space on a system. A common issue is that updates fail due to a lack of disk space but there are some simple checks you can make when faced with an error message in order to keep critical systems running smoothly.
However it does not report the size of each partitions. Bash contains two useful commands related to disk space. Check file system disk space usage the df command displays the information of device name total blocks total.
Display information of all file system disk space usage the same as above but it also displays information of dummy. Df command shows the amount of disk space used and available on linux file systems. By default df displays values in 1 kilobyte blocks.
There are primarily two commands that can be used. Linux commands to check disk space using. Check linux disk space using df command.