Last active
December 24, 2023 13:10
-
-
Save gut5/a6fe7b222d4ace05eda3e6e132c249d0 to your computer and use it in GitHub Desktop.
Useful Linux scripts
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
#Script to find big files on Linux | |
#change 500M to required size | |
find / -type f -size +500M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' | |
# fstrim with output | |
sudo fstrim --fstab --verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment