📜  您已暂停工作. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:24.736000             🧑  作者: Mango

代码示例1
# [Answer: Linux/Bash]
A stopped job is one that has been temporarily put into the background and is no longer running, 
but is still using resources (i.e. system memory). As that job is not attached to the current 
terminal, it cannot produce output and is not receiving input from the user.

The command 'jobs' will display the status of jobs in the current session (bash). 
Some may appear as: 

# [1]  + done       my_command some_options and_maybe |  
#        suspended  my_command

The command 'fg' or 'fg ' (for a specific job) can be used to take control of the 
process again. This can be used to complete something you wanted to do; Ctrl+Z or Ctrl+D (twice)
sends a kill signal. 

Alternatively, you call kill the process from another: kill $(jobs -p).