清单3显示如何将xclock作业带回到前台,并使用两种形式的fg命令暂停它。
Listing 3 shows how to bring the xclock job back to the foreground and suspend it using two forms of the fg command..
如果fg命令不带有任何作业指示,该作业将出现在前台。
This job will come to the foreground if no job specification is given with the fg command.
按Control - Z可以暂停正在运行的作业;输入bg和fg分别在后台和前台运行作业;输入jobs管理作业列表。
Press Control-Z to suspend a running job; type bg and fg to run a job in the background and foreground, respectively; and type jobs to manage the list of jobs.
在将作业放入前台之后,您可以终止它,或者采取其他操作。在本例中,我们使用Ctrl - c终止时钟。
Once you succeed in getting the job into the foreground, you can either terminate (or kill) it, or take some other action, in this case, let's use Ctrl-c to terminate our 'clock.'
在将作业放入前台之后,您可以终止它,或者采取其他操作。在本例中,我们使用Ctrl - c终止时钟。
Once you succeed in getting the job into the foreground, you can either terminate (or kill) it, or take some other action, in this case, let's use Ctrl-c to terminate our 'clock.'
应用推荐