Created
March 3, 2024 12:02
-
-
Save mateobur/b7c710ff8fa1371fc8fa040100a9029f to your computer and use it in GitHub Desktop.
Find big files to free space Linux
This file contains hidden or 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
#!/bin/bash | |
#MINSIZE default ~ 100 MB | |
MINSIZE=102400 | |
find / -type f -size +"$MINSIZE"k -exec du -sh {} \; 2>/dev/null | sort -rh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Find big files to free space Linux