Ctrl + C 終止 是強制中斷程序的執(zhí)行,,進(jìn)程已經(jīng)終止。
Ctrl + Z 是將任務(wù)中止(暫停的意思),但是此任務(wù)并沒有結(jié)束,他仍然在進(jìn)程中他只是維持掛起的狀態(tài)linux命令,用戶可以使用fg/bg操作繼續(xù)前臺或后臺的任務(wù)linux命令,fg命令重新啟動前臺被中斷的任務(wù),bg命令把被中斷的任務(wù)放在后臺執(zhí)行。
Ctrl + S 掛起
CTRL+Z stops (pauses) a job
CTRL+C terminates a job
with CTRL+C you cannot resume the process but with CTRL+Z the job can be resumed by just entering at the command promt:
fg %1
if you have multiple processes paused then you should do
jobs
to see the output and select the appropriate number to resume e.g.
fg %3
resumes the third job in the list. You can also have jobs running in the background with
bg %n
where n is the job number.
原文:https://www.cnblogs.com/sinferwu/p/11056636.html
下一個教程:Linux常用命令符