Answers:
最简单的方法是fg
将其带到前台:
$ help fg
fg: fg [job_spec]
Move job to the foreground.
Place the job identified by JOB_SPEC in the foreground, making it the
current job. If JOB_SPEC is not present, the shell's notion of the
current job is used.
Exit Status:
Status of command placed in foreground, or failure if an error occurs.
另外,您可以运行bg
使其在后台继续:
$ help bg
bg: bg [job_spec ...]
Move jobs to the background.
Place the jobs identified by each JOB_SPEC in the background, as if they
had been started with `&'. If JOB_SPEC is not present, the shell's notion
of the current job is used.
Exit Status:
Returns success unless job control is not enabled or an error occurs.
如果您刚刚打过Ctrl Z,那么要带回作业只需fg
不带任何参数即可运行。
fg
不需要任何参数。如果您刚刚点击^Z
,请fg
在同一终端上运行,它将带回第一份工作。
通过使用kill
命令从命令行向进程发送CONTINUE信号,您应该能够重新启动已暂停的进程:
kill -CONT 92929
fg
进入原始终端。我喜欢使用-STOP和-CONT gui程序来节省资源,但是无论如何它们都在后台有效运行。
sleep
它会kill
的过程,是不是你想要的..什么;)
fg telnet
,但。它说Terminated
,大概是我之前的kill
cmd的b / c 。