• <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 文件