Last active
February 22, 2017 10:42
-
-
Save xmeng1/77049bf08663f83cb7bf813a5c4aa2c3 to your computer and use it in GitHub Desktop.
Linux command configuration record
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
# confige alias | |
git config --global alias.last 'log -1 HEAD' | |
git config --global alias.lg 'log --oneline --decorate --graph --all' | |
git config --global alias.cm 'commit -m' | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status |
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
# cope date to clipboard which can be used for ctrl+v | |
date | xclip -selection clipboard | |
# filter port | |
sudo netstat -nlp | grep 443 | |
# start/stop/restart service | |
sudo systemctl start nginx.service | |
sudo systemctl restart nginx.service | |
sudo systemctl stop nginx.service | |
sudo systemctl status nginx.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment