Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Last active December 17, 2015 02:29
Show Gist options
  • Save bingeboy/5536005 to your computer and use it in GitHub Desktop.
Save bingeboy/5536005 to your computer and use it in GitHub Desktop.
Common Bash Commands I always forget.
#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