User Tools

Site Tools


wiki:disk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:disk [2015/11/27 13:42]
asa created
wiki:disk [2015/11/27 13:52]
asa
Line 56: Line 56:
 <code bash> <code bash>
 $ du -sh cs580/ $ du -sh cs580/
 +408K cs580/
 +</​code>​
 +
 +Another useful option is the ''​--max-depth''​ option, which tells du to only list things up to a certain depth:
 +<code bash>
 +$ du -h --max-depth=1 cs580/
 +404K cs580/​playground
 +408K cs580/
 +</​code>​
 +Note that this is the ''​long''​ version of the ''​-d''​ option:
 +<code bash>
 +$ du -h -d1 cs580/
 +404K cs580/​playground
 408K cs580/ 408K cs580/
 </​code>​ </​code>​
  
wiki/disk.txt ยท Last modified: 2016/08/02 14:47 (external edit)