Zi 字媒體
2017-07-25T20:27:27+00:00
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
寫了
5860316篇文章,獲得
23313次喜歡