United States-English |
|
|
HP-UX Reference > Ddu(1)HP-UX 11i Version 3: February 2007 |
|
NAMEdu — summarize disk usage DESCRIPTIONThe du command gives the number of 512-byte blocks allocated for all files and (recursively) directories within each directory and file specified by the name operands. The block count includes the indirect blocks of the file. A file with two or more links is counted only once. If name is missing, the current working directory is used. By default, du generates an entry only for the name operands and each directory contained within those hierarchies. By default, when a symbolic link is encountered on the command line or in the file hierarchy, du will count the size of the symbolic link rather than the file referenced by the link, and will not follow the link to another portion of the file hierarchy. OptionsThe du command recognizes the following options:
According to the standards, specifying more than one of the mutually-exclusive options -H and -L will not be considered an error. The last option specified will determine the behavior of the utility. EXAMPLESDisplay disk usage for the current working directory and all directories below it, generating error messages for unreadable directories: du -r Display disk usage for the entire file system except for any cdfs or nfs mounted file systems: du -t hfs / Display disk usage for files on the root volume (/) only. No usage statistics are collected for any other mounted file systems: du -x / |
Printable version | ||
|