Cer*_*rus 10 command-line bash job-control
我suspend在我的终端中输入,它暂停了执行。
我如何恢复正常的终端功能?我已经尝试过Ctrl+ C、Ctrl+ D、Ctrl+ Q(如此处建议的)和Ctrl+ Z,但这些都不起作用。当然我可以关闭终端并打开一个新终端,但是没有办法“恢复”终端功能吗?
我正在运行带有默认 (bash) shell 的 Ubuntu GNOME 16.04。
Rin*_*ind 11
从您的链接:
直到它收到一个 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)
Run Code Online (Sandbox Code Playgroud)
您需要在终端中运行的 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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6224 次 |
| 最近记录: |