Moved du back seperate pages for linux/osx because GNU has --max-depth, BSD has -d

Edited the examples to always explicitly specify unit as previous examples allowed return of block units which is probably not what your average user wants.
This commit is contained in:
Peter Tripp 2014-02-10 12:27:59 -08:00
parent 41ae4ab605
commit 3962b799d2
3 changed files with 38 additions and 19 deletions

View File

@ -1,19 +0,0 @@
# du
> Estimate file space usage
- get file sizes of directory's content
`du {{file/directory}}`
- get total size in human readable form
`du -sh {{file/directory}}`
- get recursively, individual file/folder sizes in human readable form
`du -ah {{directory}}`
- get file sizes till a specified depth
`du --max-depth=1`

19
linux/du.md Normal file
View File

@ -0,0 +1,19 @@
# du
> Estimate file space usage
- get a sum of the total size of a file/folder in human readable units
`du -sh {{file/directory}}`
- list file sizes of a directory and any subdirectories in KB
`du -k {{file/directory}}`
- get recursively, individual file/folder sizes in human readable form
`du -ah {{directory}}`
- list the KB sizes of directories for N levels below the specified directory
`du --max-depth=1`

19
osx/du.md Normal file
View File

@ -0,0 +1,19 @@
# du
> Estimate file space usage
- get a sum of the total size of a file/folder in human readable units
`du -sh {{file/directory}}`
- list file sizes of a directory and any subdirectories in KB
`du -k {{file/directory}}`
- get recursively, individual file/folder sizes in human readable form
`du -ah {{directory}}`
- list the KB sizes of directories for N levels below the specified directory
`du -k -depth=1 {{directory}}`