【问题标题】:Issue when moving process from background to foreground in Ubuntu Terminal在 Ubuntu 终端中将进程从后台移动到前台时出现问题
【发布时间】:2017-01-26 09:12:18
【问题描述】:

我从终端在后台启动了几个进程。

lars@UbuntuVM:~$ xeyes &
[1] 8553
lars@UbuntuVM:~$ xclock -update 1 &
[2] 8554
lars@UbuntuVM:~$ jobs
[1]-  Running                 xeyes &
[2]+  Running                 xclock -update 1 &

任务是将其中一个置于前台,将其挂起,然后将其带回后台。但是,当我将其中一个带到前台时,我无法输入任何新命令。如果我输入 ^C,它只会一起终止进程。

lars@UbuntuVM:~$ fg %1
xeyes
How
do
I
get 
back
from
here?

那么当移动到前台时如何继续暂停当前进程?

【问题讨论】:

    标签: ubuntu process terminal background foreground


    【解决方案1】:

    用于将前台进程发送到后台的正确组合键是^Z,而不是^C。有关详细信息,请参阅 job control 上的 Bash 手册。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-22
      • 2022-09-26
      • 1970-01-01
      • 2019-06-12
      相关资源
      最近更新 更多