Admin Life Errors, Fixes, and Encounters

25Jan/100

quick way to find big files or directories

If your system is running out of space and you can't seem to pin point where the space went to then try this command.

du -h | grep [1-9][0-9][0-9]M

The command looks in the current directory for files from 100-999MB in size.

To look for files in GB use the following (0-9GB)
du -h | grep [0-9]G

For files 10-99GB use this command
du -h | grep [0-9][0-9]G

Filed under: commands, Unix No Comments