What is df command
The df command stand for “disk filesystem“, it is used to get full summary of available and used disk space usage of file system on Linux system.
Check File System Disk Space Usage
df command displays device name information , total blocks, total disk space, used disk space, available disk space and mount points on a file system.
Display Disk Space Usage as Human Readable Format
df command provides an option to display size information in Human Readable format by passing ‘-h’ parameter (prints the results in human readable format (e.g., 1K 2M 3G 1T)).
Display Information of one device like /home File System
To display the information of one device (e.g. /home) file system in human readable format run the following command.
Display Disk Space Usage Information of File System in Bytes
To display all file system information and usage in 1024-byte blocks, use the option ‘-k‘ :
Display Disk Space Usage Information of File System in MB
To display Disk Space information of file system usage in MB (Mega Byte) use the option as ‘-m‘.
Display Disk Space Usage Information of File System in GB
To display Disk Space information of file system usage in GB (Gigabyte) use the option as ‘-h‘.
Display File System Type
To check the file system type of your system use the option ‘T‘. It will display file system type and other information as following:
Display Help Information of df Command
‘–-help‘ switch will display a list of available option that are used with df command.
2,498 total views, 7 views today