Talk:du (Unix)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Free Software / Software / Computing  (Rated Start-class, Low-importance)
WikiProject icon This article is within the scope of WikiProject Free Software, a collaborative effort to improve the coverage of free software 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.
Taskforce icon
This article is supported by WikiProject Software (marked as Low-importance).
Taskforce icon
This article is supported by WikiProject Computing (marked as Low-importance).
 

Error?[edit]

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 137.120.180.34 (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? 98.207.58.135 (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)