摘要: 查看某目录占用空间命令查看某目录占用空间命令:# du -sh DirPath比如: du -sh /home/snail查看某目录下有多少个文件命令:# find DirPath -type f | wc -l比如: find /home/snail -type f | wc -l如果想查看 src 目录下有多少 C 文件,如下:# find ./src -type f -name "*.c" | wc -lfind 命令的 -type 后的参数有以下选择,每种都代表不一样的“类型(type)”-type 文件类型 b 块文件(比如内存) c 字符文件(比如串口) d 目 阅读全文
posted @ 2013-06-11 01:35 江湖道士 阅读(143) 评论(0) 推荐(0) 编辑