Estimate File Size Usage

/ Published in: Bash
Save to your folder(s)

- '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.

Copy this code and paste it in your HTML
  1. du -Sh | sort -n -r | more

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.