Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useful shell tips #28

Open
WyattJia opened this issue Sep 5, 2017 · 0 comments
Open

Useful shell tips #28

WyattJia opened this issue Sep 5, 2017 · 0 comments
Labels

Comments

@WyattJia
Copy link
Owner

WyattJia commented Sep 5, 2017

  • <C-r>: some_very_long_and_complex_command # 后面作为注释,可以通过ctrl+r搜索到这个命令
  • iotop: 查看io 的 top
  • touch file{1,2,3,4,5}.sh 同时操作多个文件
  • find ./ -type l: -ls 找出所有符号链接文件
  • sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*": 捕获http请求
  • find . -iname '*.jpg' | sed 's/.*/<img src="&">/' > gallery.html 生成html 相册
  • git log --reverse -p: 优雅的倒叙查看 git 日志
  • for ((;;)) do pgrep python || echo "python not found"; sleep 5; done 没找到 Python 进程就睡五秒钟...
  • htmltree index.html 格式化展示 html 文件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant