mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 23:51:51 +00:00
Update cheatsheets
This commit is contained in:
6
tldr/du
6
tldr/du
@@ -24,13 +24,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`du {{[-ah|--all --human-readable]}} {{path/to/directory}}`
|
||||
|
||||
- List the human-readable sizes of a directory and any subdirectories, up to N levels deep:
|
||||
- List the human-readable sizes of a directory and any subdirectories, up to `n` levels deep:
|
||||
|
||||
`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} N {{path/to/directory}}`
|
||||
`du {{[-h|--human-readable]}} {{[-d|--max-depth]}} {{n}} {{path/to/directory}}`
|
||||
|
||||
- List the human-readable size of all `.jpg` files in current directory, and show a cumulative total at the end:
|
||||
|
||||
`du {{[-ch|--total --human-readable]}} {{./*.jpg}}`
|
||||
`du {{[-ch|--total --human-readable]}} *.jpg`
|
||||
|
||||
- List all files and directories (including hidden ones) above a certain threshold size (useful for investigating what is actually taking up the space):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user