批量替换当前目录下.conf文件中内容
如将内容中的127.0.0.1替换为localhost
find . -type f -name "*.conf" -exec sed -i 's/127.0.0.1/localhost/g' {} +
清理日志目录超过1G的日志文件
不删文件只清空
find /data/app_log -type f -name "*.log" -size +1G -exec truncate -s 0 {} \;
fdupes检测重复文件
apt install fdupes
fdupes -dN . # 删除重复内容的文件, 只保留一个