Linux下查看某目录或指定文件大小的命令
2011-01-09 14:11
766 查看
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
用法: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下查看某目录或指定文件大小的命令
- linux查看文件和目录大小(du命令)
- linux查看文件和目录大小命令df&du
- Linux 查看目录大小及文件数量命令
- Linux 查看目录大小及文件数量命令
- Linux 查看目录大小及文件数量命令
- Linux下使用《du》命令查看某文件及目录的大小
- Linux 用du命令查看目录或文件所占用磁盘空间的大小
- Linux下使用du命令查看文件或目录占用磁盘空间大小
- linux命令-查看当前目录下所有文件的大小:“ll -h”
- linux设置磁盘配额查看目录文件大小命令
- Linux查看目录大小及文件数量命令
- linux查看文件和目录大小命令df&du
- linux查看文件和目录大小(du命令)
- linux查看文件和目录大小命令df&du
- Linux 查看目录大小及文件数量命令
- Linux 查看目录大小及文件数量命令
- linux查看文件和目录大小(du命令)
- Linux 查看目录大小及文件数量命令
- linux下查看磁盘,文件大小的命令