find命令并显示文件大小

有些时候查询大于多少M的文件时候需要显示文件大小,组合命令如下:

find /opt/ -size +1G -exec ls -lh {} \;

你可能感兴趣的:(linux)