内容简介:文章专门介绍的命令du,是Disk Usage命令的首字母缩写。
常用的有:
du -a
du -h
du -s
du -S
等。du is a disk usage command allows you to easily know file and directory sizes, also you can view file and directory sizes decreasing starting by biggest file, otherwise increasing by smallest file.
Here’re a few basic du commands frequently used.
du -adu –all shows all files and directories included in currently opening directory.du -hdu –human-readable views file and directory sizes with readable by human in KB, MB, and GB.du -sdu –summarize display only a total for each argument.du -Sdu -separate-dirs command don’t include sub-directories sizes.du --
timeShows the last time modifications for each file, directory and sub-directories as well.Check more du commands by typingdu --help
Few du advanced commands
Search current directory and sub-directories for biggest filesfind -type f -
exec du -sh {} + |
sort -rh | head
Shows file, directory and sub-directory sizes including hidden files with increase sorting.du -sk .[!.]* *|
sort -n
Shows file, directory and sub-directory sizes including hidden files with decrease sorting.du -sk .[!.]* *|
sort -nrLinux下采用NetBeans调试C程序在Ubuntu 11.04上编译ICE相关资讯 Linux命令
- 48 字节命令可令 Linux 系统当机! (今 07:55)
- 在Linux笔记本上执行这句命令能致 (02月02日)
- .NET开发必会的Linux命令 (12/20/2015 10:32:03)
| - 运维工程师必会的109个Linux命令 (03月09日)
- 有趣的Linux命令行:随机输出唐诗 (12/28/2015 20:14:23)
- 10 个 Linux 中的 passwd 命令示例 (10/29/2015 10:14:30)
|
本文评论 查看全部评论 (0)