/ 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.
Expand |
Embed | Plain Text
du -Sh | sort -n -r | more
You need to login to post a comment.
