linux shell 背景執行
資料來源:http://linuxdiary.blogspot.com/2007/10/blog-post_30.html
把命令放到背景執行(僅僅需要在命令的最後加上一個 & )
$ sleep 300 & [1] 8521 $ sleep 500 & [2]8522
#[1] 代表指定給該工作的序號 #8521 代表 PID (process ID)
若想查詢當前的背景工作
$ jobs
linux shell 背景執行
資料來源:http://linuxdiary.blogspot.com/2007/10/blog-post_30.html
把命令放到背景執行(僅僅需要在命令的最後加上一個 & )
$ sleep 300 & [1] 8521 $ sleep 500 & [2]8522
#[1] 代表指定給該工作的序號 #8521 代表 PID (process ID)
若想查詢當前的背景工作
$ jobs
本文由 jashliaoeuwordpress 提供 原文連結