linux在开发项目中常用命令

linux命令:


查看日志(实时):tail -f a.log


查看日志最新100行:tail -n 100 a.log

精确查找日志:cat -n xxx.log | grep "xxx打印"

查运行的进程:ps -ef | grep nsrep-self-study.jar


杀死进程:kill -9 xxxx

 

 linux解压:

unzip xxx.zip

 

linux查找某个文件:aaa.txt

find /opt/test/demo/ -type f -name "aaa.txt"

 

 

 3、日志:关键字查询命令:最后5000行中查找

 tail -n 5000 catalina.out | grep "当前登录人用户"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2022-08-26 18:00  下课后我要去放牛  阅读(35)  评论(0)    收藏  举报