Created
July 4, 2015 14:14
-
-
Save thewhatsupguy/68493a71684274372e86 to your computer and use it in GitHub Desktop.
Find Large Files in Ubuntu Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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