机器人 救救瓜
Toggle navigation
Home
SCM-tool
Linux
Jenkins
SVN
other
About Me
Archives
Tags
列出目录大小及排序
2020-09-02 10:04:38
710
1
0
gua_l
列表本目录所占空间 ``` du -sh ./ ``` 列表子目录所占空间 ``` du -sh ./* ``` 列表子目录所占空间达到不足1M的 ``` du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[K]" ``` 列表子目录所占空间达到1M 以上 ``` du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[M,G]" ``` 列表子目录所占空间达到1G 以上 ``` du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[G]" ``` 每个级别的列表再按第一列数值排序 ``` du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[K]"| sort -n du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[M]"| sort -n du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[G]"| sort -n ``` 在排了序基础上再取最大10 个 ``` du -sh ./* | grep "^[0-9]\{1,\}.\{0,1\}[0-9]\{1,\}[G]" | sort -n | tail -n 10 ``` </br>
Pre:
设置SVN 默认log 模板格式
Next:
/etc/fstab
1
likes
710
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.