学堂首页 | 网站开发 | 工具应用 | 站长时代 | 免费资源 | 网络安全 | 服务器类 | 新闻资讯 | 素材欣赏
您的位置: 中国建站大全 -> 服务器应用 -> 服务器架设 -> Linux下查看某目录或指定文件大小的命令

Linux下查看某目录或指定文件大小的命令

作者:未知  来源:网络收集  发布时间:2007-12-25 9:45:16  发布人:网络

du -sh 文件或目录名

用法: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

 

上一篇:Linux下实现FTP虚拟主机的方法

下一篇:Google打击三级域名SEO 域名只显示两个结果   

  • · 注册码大全二
  • · 注册码大全四
  • · 注册码大全一
  • · 要10G免费网络硬盘的请进来!...
  • · 通过google 赶快来赚美金
  • · 注册码大全十
  • · 注册码大全三
  • · 头像-qq头像(qq新头像)4
  • · 让你轻松架设FTP服务器1
  • · 梦幻背景图片7
  • · Fireworks 毛边字效果制...
  • · 个人网站真能转成商业网...
  • · Flash加载外部文件(3)...
  • · 调查显示:89.9%的人认为...
  • · MySpace发布在线服务开拓...
  • · 用Photoshop蒙版制作漂亮...
  • · JSP由浅入深(9)
  • · 用PS制作LED风格的文字(...
  • · Flash MX组件运用实例(3...
  • · Flash5 程序控制的三种方...