Product SiteDocumentation Site

20.3. File Systems

The df command reports the system's disk space usage. If you Execute the command df at a shell prompt, the output looks similar to the following:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/volgrp1-lvroot
                      14127024   6868092   6541316  52% /
tmpfs                  2008828       592   2008236   1% /dev/shm
/dev/sda1               495844     65047    405197  14% /boot
/dev/mapper/luks-b20f8f7a-7f0f-4497-8de4-81bfa3e541cf
                     122046576  12111420 103735552  11% /home
By default, this utility shows the partition size in 1 kilobyte blocks and the amount of used and available disk space in kilobytes. To view the information in megabytes and gigabytes, use the command df -h. The -h argument stands for human-readable format. The output looks similar to the following:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/volgrp1-lvroot
                       14G  6.6G  6.3G  52% /
tmpfs                 2.0G  592K  2.0G   1% /dev/shm
/dev/sda1             485M   64M  396M  14% /boot
/dev/mapper/luks-b20f8f7a-7f0f-4497-8de4-81bfa3e541cf
                      117G   12G   99G  11% /home
In the list of mounted partitions, there is an entry for /dev/shm. This entry represents the system's virtual memory file system.
The du command displays the estimated amount of space being used by files in a directory. If you execute du at a shell prompt, the disk usage for each of the subdirectories is displayed in a list. The grand total for the current directory and subdirectories are also shown as the last line in the list. If you do not want to see the totals for all the subdirectories, use the command du -hs to see only the grand total for the directory in human-readable format. Use the du --help command to see more options.
To view the system's partitions and disk space usage in a graphical format, use the Gnome System Monitor by clicking on ApplicationsSystem ToolsSystem Monitor or executing the gnome-system-monitor command at a shell prompt. Select the File Systems tab to view the system's partitions. The figure below illustrates the File Systems tab.
GNOME System Monitor - File Systems tab
File systems tab of the gnome-system-monitor
Figure 20.3.  GNOME System Monitor - File Systems tab