mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-31 10:17:58 +01:00
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:
parent
41ae4ab605
commit
3962b799d2
3 changed files with 38 additions and 19 deletions
19
common/du.md
19
common/du.md
|
@ -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
19
linux/du.md
Normal 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
19
osx/du.md
Normal 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}}`
|
Loading…
Reference in a new issue