Skip to content

Commit 0a3d0d9

Browse files
committed
2016-12-14
1 parent 972bfd3 commit 0a3d0d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Bash.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
- `find /opt -type d -iname .oh-my-zsh`,其中 /opt 代表目录名,-type d 代表只找目录,.oh-my-zsh 代表搜索的是隐藏文件夹名字为 oh-my-zsh 的
105105
- `find . -name "lin*" -execls -l{}\;`,当前目录搜索lin开头的文件,然后用其搜索后的结果集,再执行ls -l的命令(这个命令可变,其他命令也可以),其中 -exec 和 {}\; 都是固定格式
106106
- `find /opt -type f -size +800M -print0 | xargs -0 du -h | sort -nr`,找出 /opt 目录下大于 800 M 的文件
107+
- `find / -name "*tower*" -exec rm {} \;`,找到文件并删除
107108
- `du -hm --max-depth=2 | sort -nr | head -12`,找出系统中占用容量最大的前 12 个目录
108109
- `cat /etc/resolv.conf`,查看 DNS 设置
109110
- `netstat -tlunp`,查看当前运行的服务

0 commit comments

Comments
 (0)