2019年1月25日

grep过滤不包含某些字符串的命令

摘要: 1.grep命令 tail -f /export/log/crpl_loan_finance_front_dev/crpl_loan_finance_front_dev_detail.log | grep -v 'ProducerSendThread-' | grep -v 'sgm-config- 阅读全文

posted @ 2019-01-25 18:15 cep 阅读(1601) 评论(0) 推荐(0) 编辑

Linux定时清理日志

摘要: 1.查找并删除文件 命令1:find 对应目录 -mtime +天数 -name "文件名" -exec rm -rf {} \; 例:find /opt/soft/log/ -mtime +30 -name "*.log" -exec rm -rf {} \; 命令2:find 对应目录 -mti 阅读全文

posted @ 2019-01-25 16:14 cep 阅读(1061) 评论(0) 推荐(0) 编辑

导航