清除日子目录下的所有日志内容命令

清除日志目录下的所哟日志

find /var/log/ -type f| awk '{print ">"$0}'|bash

列车所有日志中的错误

find /var/log/ -type f|xargs grep -i error

猜你喜欢

转载自www.cnblogs.com/aldshengdeng/p/12183083.html