When it comes to checking which files or directories waste your disk space the most, du command is probably the easiest way.
To find the biggest files or directories on Linux, use the following command.
The above command will sort all files and sub-directories which exist in the current directory in the order of size (biggest size first), and print the top-15.
If you want to find the biggest files only (but not directories), use the following command instead.
It will print the top-15 biggest files located in the current directory (and its all sub-directories).
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.