When you suspect insufficient disk space in the directories in which Admin Pack product files are installed, you may find the following commands useful in determining the current disk space usage.
Display Filesystem Statistics: df -k directory
The command df -k directory displays the amount of used and available disk space for each of the mounted file systems. The example indicates that 101061 kilobytes are available in /opt.
For example, df -k /opt could display something like the following:
Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s5 123455 10049 101061 10% /opt |
Report on Disk Usage: du directory
The command du directory reports the amount of disk space used by all files and subdirectories underneath one or more specified directories, listed on a per subdirectory basis. Disk usage is reported in blocks. The numbers on the left indicate the number of blocks of disk space occupied by the directory. In our example, the /opt/SUNWits directory occupies 18456 blocks of disk space.
For example, du /opt could display something like the following:
18456 /opt/SUNWits 2 /opt/SUNWleo/include 4 /opt/SUNWleo |