Skip to content

Instantly share code, notes, and snippets.

@xmeng1
Last active February 22, 2017 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xmeng1/77049bf08663f83cb7bf813a5c4aa2c3 to your computer and use it in GitHub Desktop.
Save xmeng1/77049bf08663f83cb7bf813a5c4aa2c3 to your computer and use it in GitHub Desktop.
Linux command configuration record
# 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
# 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