Last active
August 29, 2015 14:15
-
-
Save billmote/a5d4cc7fc3741a2b46bd to your computer and use it in GitHub Desktop.
Helpful Commands
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
| # Search & Replace contents of a file -- in this case we're searching for jb4ASDK@ in all files and replacing with ~! | |
| grep -IRlr jb4ASDK@ . | xargs sed -i "" -e 's/jb4ASDK@/~!/g' | |
| # Human readable folder utilization from current folder | |
| sudo du -sh $(ls -d $(pwd)/*) | |
| # When git doesn't know who we are: | |
| eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment