CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Linux/Unix社区 >  系统维护与使用区

求助~~~如何统计目录大小~~~

楼主xjflyttp(疯子nOvEr)2006-07-02 23:51:42 在 Linux/Unix社区 / 系统维护与使用区 提问

ls   -ls   出来的是bloack数量...~~~ 问题点数:5、回复次数:3Top

1 楼xjflyttp(疯子nOvEr)回复于 2006-07-04 17:46:05 得分 0

up~~~~~~~~~~~~Top

2 楼eqxu(天使联盟)回复于 2006-07-04 18:14:45 得分 0

du   -   estimate   file   space   usage    
   
  -a,   --all  
  write   counts   for   all   files,   not   just   directories    
  -B,   --block-size=SIZE   use   SIZE-byte   blocks    
  -b,   --bytes  
  print   size   in   bytes    
  -c,   --total  
  produce   a   grand   total    
  -D,   --dereference-args  
  dereference   FILEs   that   are   symbolic   links    
  -h,   --human-readable  
  print   sizes   in   human   readable   format   (e.g.,   1K   234M   2G)    
  -H,   --si  
  likewise,   but   use   powers   of   1000   not   1024    
  -k  
  like   --block-size=1K    
  -l,   --count-links  
  count   sizes   many   times   if   hard   linked    
  -L,   --dereference  
  dereference   all   symbolic   links    
  -S,   --separate-dirs  
  do   not   include   size   of   subdirectories    
  -s,   --summarize  
  display   only   a   total   for   each   argument    
  -x,   --one-file-system  
  skip   directories   on   different   filesystems    
  -X   FILE,   --exclude-from=FILE  
  Exclude   files   that   match   any   pattern   in   FILE.    
  --exclude=PATTERN   Exclude   files   that   match   PATTERN.    
  --max-depth=N  
  print   the   total   for   a   directory   (or   file,   with   --all)   only   if   it   is   N   or   fewer   levels   below   the   command   line   argument;   --max-depth=0   is   the   same   as   --summarize    
  --help  
  display   this   help   and   exit    
  --version  
  output   version   information   and   exit    
  SIZE   may   be   (or   may   be   an   integer   optionally   followed   by)   one   of   following:   kB   1000,   K   1024,   MB   1,000,000,   M   1,048,576,   and   so   on   for   G,   T,   P,   E,   Z,   Y.        
   
  PATTERNS  
  PATTERN   is   a   shell   pattern   (not   a   regular   expression).   The   pattern   ?   matches   any   one   character,   whereas   *   matches   any   string   (composed   of   zero,   one   or   multiple   characters).   For   example,   *.o   will   match   any   files   whose   names   end   in   .o.   Therefore,   the   command    
  du   --exclude='*.o'    
  Top

3 楼duanbeibei()回复于 2006-07-05 23:23:15 得分 5

用   du   -csh命令Top

相关问题

关键词

得分解答快速导航

  • 帖主:xjflyttp
  • duanbeibei

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo