首页 > 代码库 > Linux查看日志命令

Linux查看日志命令

cd /dd1/log

ls auto-2014-11-05.*.log

tail -f auto-2014-11-05.1.log

more auto-2014-11-05.*.log | grep -E ‘UPDATE member SET res_times=‘ > ddd7.log

more auto-2014-11-05.*.log | grep -A 8 -E ‘UPDATE trans SET status=|253022501141‘ > ddd8.log

MORE ctrl+c 取消

Linux查看日志命令