date 查看當前服務時間
tail -f text.log 實時刷新指定日誌
tail -n 100 text.log 查看最後一百行日誌
cat -n text.log 顯示日誌行數
cat -n text.log |grep "name" 過濾text.log日誌中的name字段,並顯示行數
cat -n text.log|tail -n +100|head -n 10 過濾當前日誌100行後日志的前10行
可以在最後使用 more,less 進行翻頁
top 查看當前活躍進程,佔用資源等
top -H -p id 查看指定進程資源
pstree -p 查看當前所有進程和線程
pstree -p |wc -l 查看當前線程總數量
jstack id 查看具體進程下開的所有線程,具體可重定向至指定文件,詳細查看