linux查看当前文件和文件夹大小
来源:互联网 发布:手机txt编辑软件 编辑:程序博客网 时间:2024/05/17 02:34
Linux查看文件和文件夹大小
1、du -sh 查看当前文件夹大小
du -sh * | sort -n 统计当前文件夹(目录)大小,并按文件大小排序
附送:
du -sk filename 查看指定文件大小
2、 Linux:ls以K、M、G为单位查看文件大小
#ls -lhs
举例比较:
# ls
cuss.war nohup.out
# ls -l
total 30372
-rw-r--r-- 1 root root 31051909 May 24 10:07 cuss.war
-rw------- 1 root root 0 Mar 20 13:52 nohup.out
# ls -lh
total 30M
-rw-r--r-- 1 root root 30M May 24 10:07 cuss.war
-rw------- 1 root root 0 Mar 20 13:52 nohup.out
# ll -h
total 30M
-rw-r--r-- 1 root root 30M May 24 10:07 cuss.war
-rw------- 1 root root 0 Mar 20 13:52 nohup.out
# ls -lhs
总计 28G
15G -rw-r--r-- 1 root root 15G 06-04 14:35 all.txt
8.0K -rwx--x--x 1 root root 632 06-04 15:57 hash.pl
- linux查看当前文件和文件夹大小
- linux 查看当前文件夹大小
- linux 查看当前文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- linux 下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- linux 查看文件和文件夹大小
- Linux下查看文件和文件夹大小
- Linux查看文件和文件夹大小
- 树形dp hdu Computer
- PCA(主分量分析)
- 蝈蝈式的记分(百度之星06年第二题)
- Struts2笔记:struts.devMode value="true"导致的错误
- NIO 简单http 服务器
- linux查看当前文件和文件夹大小
- 重返CSDN
- 函数指针转换
- 豆瓣网技术架构发展历程
- 在VC++中混用C++异常和结构化异常
- unhandled exception in:0xC0000005:Acess Violation
- Non-terminating decimal expansion; no exact representable decimal result.
- PLSQL高效设计之exists和in
- ManualResetEvent