Skip to content

Instantly share code, notes, and snippets.

@xtornasol512
Created May 25, 2017 19:49
Show Gist options
  • Save xtornasol512/25ddcdbd8902f69faac1426a6f9416c3 to your computer and use it in GitHub Desktop.
Save xtornasol512/25ddcdbd8902f69faac1426a6f9416c3 to your computer and use it in GitHub Desktop.
Pro Tip Commands Linux
# Look for certain files then get the size of everithng finding on current dir
find . -name "*lua*" -type f -exec du -ch {} + | grep total$
# Look for files with a patron on a current dir
find . -name "*lua*" -type f
# Delete all files find them with a patron
find . -name "*lua*" -type f -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment