$7.49 .com domain with free InstantPage Website Builder$1.99 Web Hosting   捷飞网络官方淘宝店   Godaddy 优惠码
返回列表 发帖
分享到:




[软件教程] 分享Linux/BSD系统查看目录大小及文件数量命令

查看当前目录大小:
6 Q. F5 @% W! i[[email protected]]# du -sh
, @4 v! v1 L  o) {! B( R  N' U# J查看指定目录大小:% L) L( P, K+ [5 u
[[email protected]]# du -sh /www/xker.com
: M5 f3 D; R* a2 }* `, ~4 s查看当前目录文件总数:
3 J& y2 G3 r2 H7 V5 c& V& F[[email protected]]# find . -type f |wc -l
# l: E( w% K* }( |+ |' d9 _* W3 F( f查看指定目录文件总数:
7 D$ @3 ]! R1 O* M# Z[[email protected]]# find /www/xker.com -type f |wc -l2 h5 ?/ N5 Z" R4 }& x4 o, Y
查看当前目录的目录总数:
  d# ]% m7 _5 G/ r7 f- `; a# M[[email protected]]# find . -type d |wc -l
8 I  H/ C% K" A% V, `3 Z查看指定目录的目录总数:
7 W  |, D' V1 C; @4 v[[email protected]]# find /www/xker.com -type d |wc -l3 ~2 o* U' w/ U$ H1 V

( ^3 O8 ?5 _4 X6 G$ r这里是早先发的一篇文章. 移步: http://bbs.fjbjdd.com/thread-1074-1-2.html


返回列表
Namecheap
Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting
互联网安全