我是靠谱客的博主 高高朋友,这篇文章主要介绍Linux 下找出超過某些容量的檔案,现在分享给大家,希望可以做个参考。

找目前所在位置下,所有檔案大小超過3M的file,並列出檔名:大小

find . -type f -size +3M -exec ls -alh {} ; | awk '{print$9 ":" $5}'

 

-size n[cwbkMG]
File uses n units of space. The following suffixes can be used:

`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 (units of 1024 bytes)

`M' for Megabytes (units of 1048576 bytes)

`G' for Gigabytes (units of 1073741824 bytes)

最后

以上就是高高朋友最近收集整理的关于Linux 下找出超過某些容量的檔案的全部内容,更多相关Linux内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(110)

评论列表共有 0 条评论

立即
投稿
返回
顶部