du (Unix)
The Unix program you (from English "disk usage" - German about " disk usage " ), which is part of the coreutils, all elements in the current directory is used to display the file sizes used.
History
The first version of you appeared in Version 1 AT & T UNIX.
Important arguments
Long - arguments typically occur only in the GNU version.
- -a shows all files.
- - apparent -size displays visible size ( at a very small text file the actual bytes instead of the size on the file system)
- -b shows the file size in kilobytes rather than in bytes. (GNU - specific)
- -c shows the end of the output to the total size.
- -h shows the sizes of " human-readable ", ie, in megabytes, gigabytes ... sometimes held in very high numbers in kilobytes.
- -s displays only the sum of all file sizes, rather than the individual elements.
- - si uses SI sizes ( A kilobyte = 1000 bytes ), so KiB, MiB ...
- - time indicates the time of the last change.
Examples
Show all files in subdirectories, in human-readable size:
- Unix commands
- Baobab