Created
October 13, 2013 12:12
-
-
Save amercier/6961604 to your computer and use it in GitHub Desktop.
User bash aliases for Mac OS X Mountain Lion
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
#!/bin/bash | |
# Apache | |
alias apache-restart='sudo apachectl -k restart' | |
alias apache-start='sudo apachectl -k start' | |
alias apache-stop='sudo apachectl -k stop' | |
# Misc | |
alias show-ports="sudo lsof -i -P | egrep '^[^ ]+'" | |
alias show-open-ports="sudo lsof -i -P | grep LISTEN | egrep '^[^ ]+'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment