Last active
December 10, 2019 18:58
-
-
Save rafaelune/fe4fc0200ad73fca7fe8 to your computer and use it in GitHub Desktop.
unix cmds
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
# searches files inside jars | |
find foo/ -name "*.jar" | xargs grep Hello.class | |
locate "*.jar" | xargs grep Hello.class | |
# displays memory usage | |
free -m | |
# change permissions | |
chmod u=rwx,g=rx,o=r myfile | |
4 stands for "read", 2 stands for "write", 1 stands for "execute", and 0 stands for "no permission." | |
# finds and deletes all files ending with .orig | |
find . -type f -name '*.orig' -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment