Skip to content

Instantly share code, notes, and snippets.

@thewhatsupguy
Created July 4, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thewhatsupguy/68493a71684274372e86 to your computer and use it in GitHub Desktop.
Save thewhatsupguy/68493a71684274372e86 to your computer and use it in GitHub Desktop.
Find Large Files in Ubuntu Linux
#Files larger than 10 MB in current Directory
find . -xdev -size +10M -exec ls -lh {} \;
#Files larger than 1GB in current Directory
find . -xdev -size +1G -exec ls -lh {} \;
#Files larger than 1GB from Root
sudo find / -xdev -size +1G -exec ls -lh {} \;
#Files larger than 1GB in folder folder1
find /home/ubuntu/folder1 -xdev -size +1G -exec ls -lh {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment