Interpreting df
Command Output
The output of the df
command provides valuable information about the disk space usage on your Linux system. Let's dive deeper into understanding the different fields in the df
output.
Filesystem
The "Filesystem" column displays the name of the file system or the device that the file system is mounted on. This can be a physical device, such as a hard drive or an SSD, or a virtual file system, such as tmpfs
(a temporary file system stored in memory).
1K-blocks
The "1K-blocks" column shows the total size of the file system in 1 KB blocks. This value represents the total capacity of the file system.
Used
The "Used" column indicates the amount of space that is currently being used on the file system. This includes the space occupied by files, directories, and system-related data.
Available
The "Available" column shows the amount of space that is currently available for use on the file system. This is the total capacity minus the used space.
Use%
The "Use%" column displays the percentage of the file system that is currently in use. This can be a useful indicator of how much free space is left on the file system.
Mounted on
The "Mounted on" column shows the mount point, which is the directory where the file system is mounted and accessible to the user.
By understanding the meaning of these fields, you can quickly interpret the output of the df
command and gain valuable insights into the disk space usage on your Linux system.
Here's an example output of the df
command:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 100663296 22234448 73728848 23% /
tmpfs 6425088 704 6424384 1% /run
/dev/sda2 976762112 683140352 293621760 71% /home
In this example, we can see that the root file system (/
) is using 23% of its total capacity, while the /home
file system is using 71% of its total capacity. This information can help you identify which file systems are running low on space and require attention.
By regularly monitoring the disk space usage with the df
command, you can proactively manage your Linux system's storage resources and ensure that your data is safe and accessible.