|
du (abbreviated from disk usage) is a standard Unix program used to estimate the file space usage; space used under a particular directory or files on a file system. Filiation of Unix and Unix-like systems Unix (officially trademarked as UNIX®) is a computer operating system originally developed in the 1960s and 1970s by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ...
A computer program is a collection of instructions that describe a task, or set of tasks, to be carried out by a computer. ...
In computing, a file system (often also written as filesystem) is a method for storing and organizing computer files and the data they contain to make it easy to find and access them. ...
History
The du utility first appeared in version 1 of AT&T UNIX. UNIX® (or Unix) is a portable, multi-task and multi-user computer operating system originally developed by a group of AT&T Bell Labs employees including Ken Thompson, Dennis Ritchie and Douglas McIlroy. ...
Specification By default, the Single Unix Specification (SUS) specifies that du is to display the file space allocated to each file and directory contained in the current directory. Links will be displayed as the size of the link file, not what is being linked to; the size of the content of directories is displayed, as expected. The Single UNIX Specification (SUS) is the collective name of a family of standards for computer operating systems to qualify for the name Unix. The SUS is developed and maintained by the Austin Group, based on earlier work by the IEEE and The Open Group. ...
As du reports allocation space and not absolute file space, the amount of space on a file system shown by du may vary from that shown by df if files have been deleted but their blocks not yet freed. The title given to this article is incorrect due to technical limitations. ...
Usage du takes a single argument, specifying a pathname for du to work; if it is not specified, the current directory is used. The SUS mandates for du the following options: - -a, display an entry for each file (and not directory) contained in the current directory
- -H, calculate disk usage for link references specified on the command line
- -k, show sizes as multiples of 1024 bytes, not 512-byte
- -L, calculate disk usage for link references anywhere
- -s, report only the sum of the usage in the current directory, not for each file
- -x, only traverse files and directories on the device on which the pathname argument is specified.
Other Unix and Unix-like operating systems may add extra options. For example, BSD and GNU du specify a -h option, displaying disk usage in a format easier to read by the user, adding units with the appropriate SI prefix (eg 10MB). GNU du however conflicts with the SUS specification by using the short -H option to display binary prefixes instead. An SI prefix (also known as a metric prefix) is a name or associated symbol that precedes a unit of measure (or its symbol) to form a decimal multiple or submultiple. ...
In computing, binary prefixes can be used to quantify large numbers where powers of two are more useful than powers of ten. ...
Examples sum of directories in Kbytes: $ du -sk * 2800344 directoryOne 4270554 directoryTwo sum of directories including hidden files and sorted by filesize: $ du -sk .[A-z]* *|sort -n The weight of directories: $ du -d 1-c -h See also This is a list of Unix programs. ...
Filelight is a KDE graphical disk-space analyzer with an innovative presentation technique. ...
External links - du -- specification from the Single Unix Specification
Manual pages GNU (pronounced ) is a computer operating system - consisting of a kernel, libraries, system utilities, compilers, and end-user application software - composed entirely of free software. ...
Coreutils is a package of GNU software containing many of the basic tools such as cat, ls, and rm needed for Unix-like operating systems to function. ...
OpenBSD is a freely available Unix-like computer operating system descended from Berkeley Software Distribution (BSD), a Unix derivative developed at the University of California, Berkeley. ...
Other - The du Command by The Linux Information Project (LINFO)
- Disk space-related utilities at Freshmeat.net
|