DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Administering filesystems

Displaying filesystem and directory usage statistics

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 inode usage statistics, select Inode Usage from the View menu. The display changes to show:


NOTE: The view mode you select is saved between sessions with the Filesystem Manager.

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/james
To display a list of users and the number of blocks they own, use quot(ADM) from the UNIX command line:

quot filesystem

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

Next topic: Locating files
Previous topic: -1

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003