# 1、学习链接 * [Linux / Unix入门教程:7天内在线学习](https://www.guru99.com/unix-linux-tutorial.html) * [所有命令](https://www.commandlinefu.com/commands/browse) * [linux-cmd](https://wangchujiang.com/linux-command/hot.html) * [命令行的艺术](https://github.com/jlevy/the-art-of-command-line/blob/master/README-zh.md) * [程序猿成长计划](https://github.com/mylxsw/growing-up) * [learn-c-the-hard-way-lectures](https://github.com/zedshaw/learn-c-the-hard-way-lectures) * [linux 调优](https://xwl-note.readthedocs.io/en/latest/linux/tuning.html) * [The Linux man-pages project](https://www.kernel.org/doc/man-pages/) * [man7](http://man7.org/index.html) * [TLDR pages](https://tldr.sh/) * [An A-Z Index of the Linux command line: bash + utilities.](https://ss64.com/bash/) * [Arch manual pages](https://jlk.fjfi.cvut.cz/arch/manpages/) * https://explainshell.com/ * https://huataihuang.gitbooks.io/cloud-atlas/content/ * https://github.com/judasn/Linux-Tutorial * https://docs.linux-code.com/ * https://www.kancloud.cn/devops-centos/ * https://gitee.com/linjialiang/full-stack-developer/ * https://wizardforcel.gitbooks.io/llthw/content/ * https://wiki.archlinux.org # 2、Linux tuning ```bash ulimit -a # 使用netstat 命令查看连接数 netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"t",state[key]}' # 查看网络状态 sar -n DEV 1 # 查看IO状态 iostat 1 # 查看cpu状态 mpstat -P ALL # 查看22端口链接 ss -lntup |grep 22 ss -tunl | grep 6443 netstat -lntup |grep 22 # 查找文件 find *.md | xargs grep -ri "ch" ``` # 3、命令 ```bash tmux screen tree dirs pushd popd locate iftop percol fasd sed awk perl htop grep awk sed cat find which xargs lsof netstat iotop iftop apg `locate / | fzf -m` fish ag cloc dtrx aunpack less sdcv httpie jq expect traceroute -> mtr / mtr-tiny top -> htop tmux -> byobu sysvinit -> systemd bash -> zsh + oh-my-zsh cd -> popd apt-get -> aptitude scp -> rsync grep - > ack ncdu - > du ls - >exa watch -n 1 -d netstat -lnp df - > pydf net-tools - > iproute2 iptables - > nftables {i,} python - > ptipython df - > dfc ```