Created
October 24, 2023 15:34
-
-
Save pojntfx/918ad8d990e33da18f6349888f3dcfee to your computer and use it in GitHub Desktop.
Find the 20 largest files on a Linux system
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
#!/bin/bash | |
find / -type f -exec du -h {} + 2>/dev/null | sort -rh | head -n 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment