Talk:Du (Unix)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Computing (Rated Start-class, Low-importance)
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Start-Class article Start  This article has been rated as Start-Class on the project's quality scale.
 Low  This article has been rated as Low-importance on the project's importance scale.


The entry

The weight of directories:
$ du -d 1-c -h

does not work on a fedora system ? --Anon. does not work on ubuntu either... —Preceding unsigned comment added by (talk) 09:31, 17 December 2007 (UTC)

I wonder if what was meant was was
The weight of directories:
$ du -D */ -c -h
--Gwern (contribs) 19:47 24 January 2007 (GMT)

This should mention what the default unit of disk space is. Is is 512 bytes? (talk) 13:25, 21 February 2008 (UTC)

More general command[edit]

The command

 $ du -sk .[!.]* *| sort -n

does not always work because the '!' is interpreted as a shortcut to another command in some shells. I suggest replacing it with '^' which works more often. Neptilo (talk) 11:36, 20 January 2013 (UTC)