Skip to content

Instantly share code, notes, and snippets.

@gut5
Last active December 24, 2023 13:10
Show Gist options
  • Save gut5/a6fe7b222d4ace05eda3e6e132c249d0 to your computer and use it in GitHub Desktop.
Save gut5/a6fe7b222d4ace05eda3e6e132c249d0 to your computer and use it in GitHub Desktop.
Useful Linux scripts
#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