Linux批量删除文件命令

Linux批量删除文件命令

示例:find /www/wwwroot/ -type f -name "*.png~" -exec rm {} \;
解析:进入/www/wwwroot/目录,删除后缀名为 .png~ 的所有文件