Finding big files

The following command will display all files that are in the megabyte range.

$ du -sh * | grep "^[0-9]*M"

The next command will display all files that are in the gigabyte range.

$ du -sh * | grep "^[0-9]*G"

If you're looking for something like kilobytes or petabytes ... etc, just substitute the M or G with the corresponding character. K is for kilobytes. I'm not sure of the others. Probably P for peta, and T for terabytes.

Also See

Linux-FindBigFiles

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.