为什么需要这篇文章
我想大概是这种情况,你的Linux 机器下磁盘满了,需要清理,然后就需要查找大的文件,确定是否有用进行删除。
具体做法
查找500M以上的文件
1 2 3 4 5 6 7 |
|
查找整整500M的文件
1
|
|
查找小于500M的文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
查找大于100M且小于500M的文件
1 2 3 4 |
|
其他查找单位
- b – for 512-byte blocks (this is the default if no suffix is used)
- c – for bytes
- w – for two-byte words
- k – for Kilobytes
- M – for Megabytes
- G – for Gigabytes