幾個常用linux命令筆記

lydawen發表於2012-12-24

netstat -pnt |grep :80 |wc -l

 

統計80埠連線數量

===================

 

grep "23.976" -rn ./

在當前目錄下查詢包含23.976內容的檔案,且輸出行數。
=========================
查詢包含指定內容的檔案(子目錄含)
find ./ -name "*.properties"| xargs grep "jdbc.maxActive"
========================
chkconfig 服務名 on/off 服務開機自動啟動

相關文章