Last active
December 17, 2015 02:29
-
-
Save bingeboy/5536005 to your computer and use it in GitHub Desktop.
Common Bash Commands I always forget.
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
#On going list of bask commands that I always forget. | |
#Dropbox symlink for .bash_profile | |
$ln -s Dropbox/MacSetings/.bash_profile ~/.bash_profile | |
#Symbolic Link: | |
ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT] | |
#Tail mongodb: | |
tail -f /usr/local/var/log/mongodb/mongo.log | |
#Search Commands | |
#If you're looking for lines matching in files: | |
grep -Hrn 'search term' path/to/files | |
#-H causes the filename to be printed (implied when multiple files are searched) | |
#-r does a recursive search | |
#-n causes the line number to be printed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment