临时笔记,以后整理

1.linux文件中,把包含指定的内容的行,输出到新文件中

grep 'CCB' topic.txt > topic_ccb.txt;

2.如何截取日志中某一时间段的日志

 linux登录控制台写错以后不能删除^H

stty erase ^H

stty erase ^?

SecureCRT的标题自动修改

 

pid=`ps -ef|grep jenkins.war|grep -v grep|awk '{print $2}'` 

1 df -h;

2 du -sh ./* 

 

free -m 查看内存使用情况

 

 

posted @ 2020-06-12 17:58  CoodIceMoon  阅读(144)  评论(0)    收藏  举报