1. 程式人生 > >linux 基礎命令 記錄

linux 基礎命令 記錄

檢視 埠 佔用 :  lsof -i:9502     netstat -tunlp |grep 9501

強殺程序 : kill -s 9 10369

ps afc  | grep xxxx.php 檢視 檔案開啟了幾個程序

檢視程式程序數:ps aft | grep tcp.php
檢視系統核心數:cat /proc/cpuinfo | grep 'cores' | uniq
連線:telnet 127.0.0.1 9501
ctrl+] ,quit退出

tail [ -f ]   xxx.xx      tail會自己主動重新整理,確保你看到最新的檔案內容。