linux 命令更新

1.进入目录:
cd /data/tomcat_asg_admin/asgLogs
2.查询 日志,过滤条件
cat asg_info.log* | grep coop-client获取数据失败
3.查询 过去日志,过滤条件
cat asg_info.log_2020-02-27.log |grep coop-client获取数据失败
4.统计日志中,失败次数
cat asg_info.log_2020-02-27.log |grep coop-client获取数据失败 | wc -l
5.查进程
ps  aux
ps  -ef
6.过滤 tomact进程
ps  aux  | grep  tomcat

原文地址:https://www.cnblogs.com/lisa2016/p/12379400.html