linux命令,查日志等
-------------------------------------------------------------------------------
关键词找日志:cat -n 1.log | grep 'keyword'
来自 <https://blog.csdn.net/weixin_45285213/article/details/121518782>
指定时间找日志:到日志目录下
sed -n '/2023-02-08 15:41/,/2023-02-08 15:44/p' nohup.out
https://blog.csdn.net/wd4java/article/details/125332982
查看内存高进程
ps aux|head -1;ps aux|sort -rn -k3|head -10
查看硬盘内存
df -h