Ctrl+Z 暫停程序及重啓程序

Ctrl+Z - 暫停進程並放入後臺

jobs - 顯示當前暫停的進程

bg N 使第N個任務在後臺運行

fg N 使第N個任務在前臺運行

bg, fg 不帶 N 時表示對最後一個進程操作


On Unix-like systems, Control+Z is the most common default keyboard mapping for the key sequence that suspends a process.[2] When entered by a user at their computer terminal, the currently running foreground process is sent a "terminal stop" (SIGTSTP) signal, which generally causes the process to suspend its execution. The user can later continue the process execution by using the "foreground" command (fg) or the "background" command (bg).

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章