Created
July 14, 2022 13:49
-
-
Save MaximeCulea/d056f0e37fecb6e097a95d39f58787bc to your computer and use it in GitHub Desktop.
Linux Cheatset
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
# Find all wanted files by type and delete | |
find . -iname \*.pdf\* -exec rm -rf {} \; | |
find . -iname \*.zip\* -exec rm -rf {} \; | |
find . -iname \*.psd\* -exec rm -rf {} \; | |
find . -iname \*.pptx\* -exec rm -rf {} \; | |
find . -iname \*.mp4\* -exec rm -rf {} \; | |
# Top 10 heavy files | |
find . -printf '%s %p\n'| sort -nr | head -10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment