How does the df command show disk space?

How does the df command show disk space?

Show Disk Space Usage in Human Readable Format By default, the df command shows the disk space in 1-kilobyte blocks and the size of used and available disk space in kilobytes. To display information about disk drives in human-readable format (kilobytes, megabytes, gigabytes and so on), invoke the df command with the -h option:

How is usable disk space reported in DF?

The usabledisk space that is reported by dfreflects only 90 percent of full capacity, as the reporting statistics allows for 10 percent above the total available space. This head roomnormally stays empty for better performance. The percentage of disk space actually reported by the dfcommand is used space divided by usable space.

How to show disk space usage in human readable format?

Show Disk Space Usage in Human Readable Format. By default, the df command shows the disk space in 1 kilobyte blocks and the size of used and available disk space in kilobytes. To view the information in human-readable format (megabytes and gigabytes), use the -h option: df -h.

How to check file system disk space usage?

Check File System Disk Space Usage The “ df ” command displays the information of device name, total blocks, total disk space, used disk space, available disk space and mount points on a file system. 2. Display Information of all File System Disk Space Usage

Why is DF not showing correct free space?

If partition has been configured to reserve certain portion of disk space only for root usage, df will not include this space as available. [root@server]# df -h Filesystem Size Used Avail Use% Mounted on /dev/optvol 625G 607G 0 100% /opt

Why is my filesystem not showing the correct free space?

One possibility is that the file (s) you deleted have more references in the filesystem. If you’ve created hardlinks, several filenames will point to the same data, and the data (the actual contents) won’t be marked as free/usable until all references to it has been removed.

What does it mean if there is no file name in DF?

If no file name is given, the space available on all currently mounted file systems is shown. here says that df do not care about the files but the filesystem itself. It displays the amount of disk space available . Summarize disk usage. It displays the amount of disk space used.