linux查看大文件內容的命令
1.當一個日志文太大時,如何查看指定內容?
命令:less 1.以百分比查看文件的內容(從文件的99.55%處開始查看) less +99.58p -n filename
2.復制搜索的內容到一個新文件
命令:grep ‘內容’ filename >> new.log 例:查找access.log某含有某一ip的所有記錄 grep 119.62.124.66 access.log >> new.log
其他更多命令:https://www.cnblogs.com/kerrycode/p/5802420.html
