|
|
In the Filesystem Manager, display disk usage statistics by selecting Disk Space from the View menu. The display changes to show (in MB):
To display the number of blocks used in a directory, use
du(C)
from the UNIX command line:
du directory
The optional directory must be the name of a directory in a mounted filesystem. If you do not give a directory name, du displays the number of blocks in the current directory. (du reports the value in 512-byte blocks by default; to display the value in 1024-byte blocks, include the -k option.)
For example, to display the number of blocks used in
the directory /usr/james, enter:
du /usr/james
The command displays the name of each directory in the /usr/james directory and the number of blocks used.
Use the -a option to display each file in the specified directory;
-s displays the grand total for the directory.
For example, enter the following for the total number of blocks
in /usr/james:
du -s /usr/james
You see:
49790 /usr/jamesTo display a list of users and the number of blocks they own, use quot(ADM) from the UNIX command line:
For example, to display the owners of files in /dev/usr, enter:
quot /dev/usr
The command displays the users who have files in the filesystem and the numbers of blocks in these files:
/dev/usr: 74534 james 49262 johnd 36506 root 15470 bin