huixisheng / huixisheng.github.com

前端开发者说,记录前端的故事
http://huixisheng.github.io/
12 stars 3 forks source link

终端常用命令整理 #25

Open huixisheng opened 5 years ago

huixisheng commented 5 years ago

du -sh * 查看空间占用 Option、Command、P 和 R 重置 Mac 上的 NVRAM 或 PRAM https://support.apple.com/zh-cn/HT204063 top https://www.jianshu.com/p/af584c5a79f2

huixisheng commented 5 years ago
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(red)%h%C(r) —— %C(bold blue)%an%C(r): %C(white)%s%C(r) %C(dim white) %C(bold green)(%ar)%C(r) %C(bold yellow)%d%C(r)' --all
huixisheng commented 5 years ago
$ git checkout feature-xx
$ git rebase dev
$ git checkout dev
$ git meger feature-xx
huixisheng commented 5 years ago
git remote set-url origin xx.git
git remote add huixisheng xx.git
git remote update --prune
huixisheng commented 5 years ago
sudo chown -R $(whoami) node_modules
huixisheng commented 5 years ago
ps -ef | grep mysql
ps aux | grep vagrant
lsof -i TCP:8080
nslookup huixisheng.github.io
huixisheng commented 5 years ago
scp huixisheng@192.168.2.250:/usr/local/etc/nginx/nginx.conf ~/Desktop
tar -czvf /Users/huixisheng/Desktop/j-excel.tar.gz j-excel/ --exclude j-excel/node_modules
huixisheng commented 5 years ago

aksakalli/gtop: System monitoring dashboard for terminal