Use the fg command of linux to put the job to the foreground to run
This article mainly introduces the use of linux fg command to put the job to the foreground to run, the article introduces in great detail, has a certain reference value, interested friends must read it!
The fg command is used to put background jobs (jobs running in the background or suspended in the background) to the foreground terminal to run. As with the bg command, if there is only one background task, you can omit the task number when using the command.
Syntax format: fg [parameters]
Common parameters:
Job ID specifies the job ID number to be placed at the front desk
Reference example
Use the fg command to convert the task with task number 1 from background execution to foreground execution:
[root@linuxcool ~] # fg 1 and above are all the contents that use the fg command of linux to put the job to the foreground to run, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!