The Linux shell provides a lot of helpful commands to analyze your data and manage your system. Here’s a quick sample to get a sorted list of space used by files and folders in your current working directory.
# Get Disk Usage (du) with Block-size of 1M (-BM) # in summary form (-s) # and sort numerically (-n) du -BM -s * | sort -n # For a reverse sort, use (-r) option to sort command # For a partial list, pipe to head or tail command
This is just a quick handy command to get daily work done. I find myself using it frequently.