pavement

Du

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
(revert spam)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[du]] is acronymic for '''disk usage'''
 
[[du]] is acronymic for '''disk usage'''
  
When this command is called with no parameters, it will display the amount of disk space used by each file and directory under the currenct working directory (see [[pwd]]).
+
When this command is called with no parameters, it will display the amount of disk space used by each file and directory under the current working directory (see [[pwd]]).
  
==Most common flags:==
+
==Common flags==
 
  -d -- used with a number to specify how many levels deep to search
 
  -d -- used with a number to specify how many levels deep to search
 
  -h -- use unit suffixes for sizes so as to make them human-readable
 
  -h -- use unit suffixes for sizes so as to make them human-readable
  
 +
==Example usage==
 
  [light@splat ~/www/paint_fx]$ '''du'''
 
  [light@splat ~/www/paint_fx]$ '''du'''
 
  484    ./Graphics
 
  484    ./Graphics

Latest revision as of 14:31, 25 October 2007

du is acronymic for disk usage

When this command is called with no parameters, it will display the amount of disk space used by each file and directory under the current working directory (see pwd).

[edit] Common flags

-d -- used with a number to specify how many levels deep to search
-h -- use unit suffixes for sizes so as to make them human-readable

[edit] Example usage

[light@splat ~/www/paint_fx]$ du
484     ./Graphics
522     .
[light@splat ~/www/paint_fx]$ du -d 0
522     .
[light@splat ~/www/paint_fx]$ du -h
484K    ./Graphics
522K    .
Personal tools