Shell 脚本:递归查找目录中最大的 PNG 文件

以下 shell 脚本递归查找目录中最大的 PNG 文件,并以人类可读格式打印其大小:

find_largest_pngs.sh
find . -iname "*.png" -type f -exec du -h {} + | sort -rh | head -n

其中:


Check out similar posts by category: Linux