Dealing with Stopped Jobs
Sometimes when you try to logout, you'll get a message saying there are "stopped jobs". These stopped jobs are programs or processes which have been suspended by a ^Z (Ctrl - Z) command. You have to either make the job active again, or get it running properly in the "background" before you can logout.
Stopping a program is useful if you want to temporarily suspend working on one program so you can do something else.
To see a list of stopped jobs, type:
You will see a list of the stopped programs. Here's an example showing a stopped "learn" session:
You can kill this stopped job by typing:
Or you can make the program active again by typing:
fg stands for foreground. (You are bringing the program from suspended status back to the foreground.) Once brought back to the foreground, you can continue the program or quit in a normal manner.
Sometimes when you try to logout, you'll get a message saying there are "stopped jobs". These stopped jobs are programs or processes which have been suspended by a ^Z (Ctrl - Z) command. You have to either make the job active again, or get it running properly in the "background" before you can logout.
Stopping a program is useful if you want to temporarily suspend working on one program so you can do something else.
To see a list of stopped jobs, type:
|
You will see a list of the stopped programs. Here's an example showing a stopped "learn" session:
|
You can kill this stopped job by typing:
|
Or you can make the program active again by typing:
|
fg stands for foreground. (You are bringing the program from suspended status back to the foreground.) Once brought back to the foreground, you can continue the program or quit in a normal manner.

本文介绍了如何处理在尝试登出时遇到的暂停任务问题。通过使用简单的命令如jobs、kill和fg,可以有效地管理这些暂停的任务,使其继续运行或者彻底终止。
1343

被折叠的 条评论
为什么被折叠?



