Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
du [options] [directories]
Print disk usage (as the number of 1 KB blocks used by each named directory and its subdirectories; default is the current directory).
Print disk usage for all files, not just subdirectories.
Print sizes in bytes.
In addition to normal output, print grand total of all arguments.
Follow symbolic links, but only if they are command-line arguments.
Print sizes in human-readable format.
Like -h, but show as power of 1000 rather than 1024.
Print sizes in kilobytes (this is the default).
Count the size of all files, whether or not they have already appeared (i.e., via a hard link).
Follow symbolic links.
Exclude files that match pattern.
Report sizes for directories only down to num levels below the starting point (which is level 0).
Print sizes in megabytes.
Print only the grand total for each named directory.
Do not include the sizes of subdirectories when totaling the size of parent directories.
Display usage of files in current filesystem only.
Exclude files that match any pattern in file.
Print help message and then exit.
Print the version and then exit.