[glug-t] One Day One GNU/Linux Command (DU)
- From: Bharathi Subramanian <sbharathi@xxxxxxxxxxxxx>
- To: GNU/Linux User Group of TCE <glugot@xxxxxxxxxxxxx>, VEC-FOSS <vecfoss@xxxxxxxxxxxxxxxx>, GNU/Linux Users Group - Trichy <glug_t@xxxxxxxxxxxxx>
- Date: Fri, 2 May 2008 10:44:23 +0530 (IST)
One Day One GNU/Linux Command
=============================
du -- Print the file's disk space usage.
Summary:
du summarize disk usage of each file/Dir, recursively for directories
and print the info in different format. Normally the size is printed
in units of 1024 bytes.
Examples:
$ du -- Show the disk usage of present and it's all sub Dirs
(Recursively).
$ du -a -- Show the files size also along with the Dir.
$ du -h -- Show sizes in the Human readable format (1K, 2M).
$ du -S -- Don't include the Sub Dirs size.
$ du -s -- Show total size of the current Dir. No detailed listing.
$ du -X MyExcPat -- Exclude all files, which is matching with the
patterns(*txt, *awk, *.c) in the 'MyExcPat' file.
$ du --exclude="*.pdf" -- Exclude all PDF files.
$ du --max-depth=2 -- Travel only 2 level depth below the current Dir.
$ du -b MyFile -- Show the 'MyFile' size in Bytes.
$ du -h MyDir -- Show the 'MyDir' size in Human readable form.
Read: man du
HTH :)
--
Bharathi S
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
Other related posts:
- » [glug-t] One Day One GNU/Linux Command (DU)