We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972bfd3 commit 0a3d0d9Copy full SHA for 0a3d0d9
Bash.md
@@ -104,6 +104,7 @@
104
- `find /opt -type d -iname .oh-my-zsh`,其中 /opt 代表目录名,-type d 代表只找目录,.oh-my-zsh 代表搜索的是隐藏文件夹名字为 oh-my-zsh 的
105
- `find . -name "lin*" -execls -l{}\;`,当前目录搜索lin开头的文件,然后用其搜索后的结果集,再执行ls -l的命令(这个命令可变,其他命令也可以),其中 -exec 和 {}\; 都是固定格式
106
- `find /opt -type f -size +800M -print0 | xargs -0 du -h | sort -nr`,找出 /opt 目录下大于 800 M 的文件
107
+ - `find / -name "*tower*" -exec rm {} \;`,找到文件并删除
108
- `du -hm --max-depth=2 | sort -nr | head -12`,找出系统中占用容量最大的前 12 个目录
109
- `cat /etc/resolv.conf`,查看 DNS 设置
110
- `netstat -tlunp`,查看当前运行的服务
0 commit comments