答案1
来自您的链接:
直到收到SIGCONT信号。
所以kill -SIGCONT {pid}
killall -CONT bash
将恢复所有。kill -18 {pid}
是一样的。- 也是
kill -s CONT {pid}
根据这个列表它应该是 control-z,但您需要使用 control-z 来停止该过程:
18 - SIGCONT - Resume process, ctrl-Z (2nd)
19 - SIGSTOP - Pause the process / free command line, ctrl-Z (1st)
您需要在终端中运行的 shell 会话的 {pid}
还有作业控制命令:
fg, bg
The fg command switches a job running in the background into the foreground.
The bg command restarts a suspended job, and runs it in the background.
If no job number is specified, then the fg or bg command acts
upon the currently running job.