Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1038273
  • 博文数量: 836
  • 博客积分: 43880
  • 博客等级: 大将
  • 技术积分: 5485
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-20 17:36
文章分类

全部博文(836)

文章存档

2011年(1)

2008年(835)

我的朋友

分类: LINUX

2008-08-20 18:20:10


du-sh文件或目录名 用法:du[选项]...[文件]... 总结每个<文件>的磁盘用量,目录则取总用量。 长选项必须用的参数在使用短选项时也是必须的。 -a,--allwritecountsforallfiles,notjustdirectories -B,--block-size=SIZEuseSIZE-byteblocks -b,--bytesprintsizeinbytes -c,--totalproduceagrandtotal -D,--dereference-argsdereferenceFILEsthataresymboliclinks -h,--human-readable以容易理解的格式印出文件大小(例如1K234M2G) -H,--si类似-h,但取1000的次方而不是1024 -k即--block-size=1K -l,--count-links连硬链接的大小也计算在内 -L,--dereference找出任何符号链接指示的真正目的地 -S,--separate-dirs不包括子目录的占用量 -s,--summarize只分别计算命令列中每个参数所占的总用量 -x,--one-file-systemskipdirectoriesondifferentfilesystems -XFILE,--exclude-from=FILEExcludefilesthatmatchanypatterninFILE. --exclude=PATTERNExcludefilesthatmatchPATTERN. --max-depth=Nprintthetotalforadirectory(orfile,with--all) onlyifitisNorfewerlevelsbelowthecommand lineargument;--max-depth=0isthesameas --summarize (责任编辑:云子)


下载本文示例代码
阅读(222) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~