LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 825|回复: 9

问:关于du的问题

[复制链接]
发表于 2004-9-25 09:43:58 | 显示全部楼层 |阅读模式
#du /home

最后显示总数是1088 /home
这个1088是以1MB零88字节还是
什么啊?

能不能指定显示成MB单位啊?
发表于 2004-9-25 10:08:36 | 显示全部楼层
du --help
man du
 楼主| 发表于 2004-9-25 12:44:24 | 显示全部楼层
^_^
发表于 2004-9-25 13:17:38 | 显示全部楼层
最初由 txkss 发表
^_^

当你对一个命令不了解的时候,可以简单的看他的帮助文件
command --help
更详细的文档看他的manual
man command
or
info command
在linux的世界里,不会man,那 .... ;)
 楼主| 发表于 2004-9-25 13:31:56 | 显示全部楼层
发表于 2004-9-26 10:20:17 | 显示全部楼层
我到现在只知道du -sh
呵呵,好象也够用了
发表于 2004-9-26 18:50:43 | 显示全部楼层
我常用的格式du -sh /your/dir
 楼主| 发表于 2004-9-26 22:06:03 | 显示全部楼层
是-H
发表于 2004-9-26 22:10:44 | 显示全部楼层
/home/lee#du --help
用法:du [选项]... [文件]...
总结每个<文件>的磁盘用量,目录则取总用量。

长选项必须用的参数在使用短选项时也是必须的。
  -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  以容易理解的格式印出文件大小 (例如 1K 234M 2G)
  -H, --si              类似 -h,但取 1000 的次方而不是 1024
  -k                    即 --block-size=1K
  -l, --count-links     连硬链接的大小也计算在内
  -L, --dereference     找出任何符号链接指示的真正目的地
  -S, --separate-dirs   不包括子目录的占用量
  -s, --summarize       只分别计算命令列中每个参数所占的总用量
  -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     显示此帮助信息并离开
      --version  显示版本信息并离开

<大小>可以是以下的单位 (单位前可加上整数):
kB=1000,K=1024,MB=1000000,M=1048576,还有 G、T、P、E、Z、Y 如此类推。

Report bugs to <bug-coreutils@gnu.org>.
 楼主| 发表于 2004-9-26 22:43:18 | 显示全部楼层
谢谢谢谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表