Difference between revisions of "Linux command: du"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "du {| class="wikitable" |- ! Parameter !! Description |- | -a || Gives also file information not only folders |- | -c || Gives also the total |- | -h || Gives legible informat...") |
Rafahsolis (talk | contribs) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | du | + | '''du''' |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 12: | Line 12: | ||
| -s || Total only | | -s || Total only | ||
|} | |} | ||
| − | + | Examples: | |
du -shc info2bach* | du -shc info2bach* | ||
| + | du -sh /* | ||
| + | du -sch .[!.]* * |sort -h # Show folders & files size at current folder | ||
| + | |||
| + | === List large files === | ||
| + | du -sh ./* | grep -E '^[0-9]{0,9}\.?[0-9]{1,3}G' | ||
Latest revision as of 17:05, 12 August 2018
du
| Parameter | Description |
|---|---|
| -a | Gives also file information not only folders |
| -c | Gives also the total |
| -h | Gives legible information (K, M, G...) instead of disk sectores |
| -s | Total only |
Examples:
du -shc info2bach* du -sh /* du -sch .[!.]* * |sort -h # Show folders & files size at current folder
List large files
du -sh ./* | grep -E '^[0-9]{0,9}\.?[0-9]{1,3}G'