歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux 大文件查找信息

Linux 大文件查找信息

日期:2017/2/28 16:25:20   编辑:Linux教程

如果Apache沒有對日志做分頁處理,會出現錯誤日志太大導致查看不方便的問題,當然系統安全日志也可以按照此種方法進行操作:

more error_log | grep 'Dec 08 05:' > 120805.txt

more error_log | grep 'Dec 08 05:' > 120805.txt
more error_log | grep 'Dec 08 04:' > 120804.txt

more error_log | grep 'Dec 08' > 1208.txt

就是利用通道將符合關鍵字的內容直接輸出保存到其他文件方便查看。

Copyright © Linux教程網 All Rights Reserved