Hot answers tagged


This command will find the files in /var/log that are less than 5M in size and print the size (in kilobytes) along with the file name: find /var/log -maxdepth 1 -size -5M -type f -printf '%5k %f\n' Sample output might look like: 112 syslog.6.gz 1048 messages.1 112 syslog.5.gz 120 syslog.7.gz 1216 syslog.1 How it works -maxdepth 1 tells find ...


I personally found that using ncdu worked quite well.

Only top voted, non community-wiki answers of a minimum length are eligible