/ Published in: Bash
Using:
- 'du' with -S for not including size of subdirectories, and -h is to see on human-readable form (changing bytes to gb or mb);
- 'sort' with -n for indexing comparing numerical string values, and -r to reverse the order of the sort;
- 'more' to see the output in parts.
- 'du' with -S for not including size of subdirectories, and -h is to see on human-readable form (changing bytes to gb or mb);
- 'sort' with -n for indexing comparing numerical string values, and -r to reverse the order of the sort;
- 'more' to see the output in parts.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
du -Sh | sort -n -r | more