Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the fg command of linux to put the job to the foreground to run

Shulou Source: shulou.com Published: 2022-06-02 13:49:13 09月30日 Update

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!

Tags: Commands jobs foreground background runs tasks contents parameters identifiers references values interests only instances guys buddies commonly used more identification numbers formats Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS OPPO Reno Huawei Shulou Technology