Filesystem Administration  «Prev  Next»

Lesson 8 Monitoring filesystem usage
Objective List the commands for monitoring filesystem usage.

Monitoring Filesystem Usage

Monitoring the use of your system's filesystems is important to ensure that the information is readily available to your users and enough space has been allocated to store the needed files. To monitor filesystem usage, the following commands are available: df, repquota, du and the utility GNOME DISKFree.
The following table details the commands for monitoring filesystem use.

df Looks at usage by partition. Its output displays the size of the partition, the amount used, the amount available, the percentage used,and the mount point.
df - h Produces output in megabytes or gigabytes, and hence may be more easily interpreted.
repquota Lists a summary of quota information. It may be given a device (partition) name or the -a argument for all filesystems listedin /etc/fstab.
du Looks at the usage of a directory and its subdirectories.
du with no argumentsPrints the size of every directory in the current directory.
du -a Prints the size of every file and directory in the current directory.
du -s Prints only a total for the given argument.
GNOME DISKFreeProvides a graphical display of disk usage. The utility, available in the GNOME menu under Utilities or by typing gdiskfree inan X terminal, provides continuous monitoring of disk usage.

Question: What is the command to check the percentage of storage space used on /dev/hda3:?
df /dev/hda3	

The next lesson describes how to resolve filesystem problems.