后臺運行:
nohup command &
nohup輸出:
nohup command? > myout.file 2>&1 &

查看:
jobs
查看任務:
ps -aux|grep bismark
a:顯示所有程序
u:以用戶為主的格式來顯示
x:顯示所有程序,不以終端機來區(qū)分

用grep -v參數(shù)可以將grep命令排除掉
ps -aux|grep chat.js| grep -v grep


stat的說明

中文
再用awk提取一下進程ID
ps -aux|grep chat.js| grep -v grep | awk?'{print $2}'
終止后臺運行的進程kill
kill -9? 進程號 # 徹底刪除
kill -STOP 1234 # 暫停進程
kill -CONT 1234 # 重啟進程