Add the & rdquo; & amp; & rdquo; symbol at the end of the command to run the command in the background. a command number and command are displayed, followed by Running, indicating that the command is Running, enter fg to bring the background commands back to the foreground. However, if multiple commands are run in the background, the jobs command is required. the jobs command can list all the commands and running statuses running in the background, then, you can use the fg space and the command number to call the corresponding command back to the front-end. if
Add the "&" symbol at the end of the command to run the command in the background,
At this time, we can see a command number and command, followed by Running, indicating that it is Running,
Enter fg to bring the background command back to the foreground,
However, if multiple commands are run in the background, the jobs command is required,
The jobs command can list all commands and running statuses running in the background,
Then, you can use the fg space and the command number to call the corresponding command back to the front-end,
If a command is already running on the foreground and you do not want to end it,
Press Ctrl + Z to move the command to the background,
However, the status of the command is Stopped,
At this time, you can use the bg space and then run the command number to place the command in the Runing state.
Although the above method allows the command to run in the background,
However, if you log out of the terminal or close the terminal, the background commands will also end,
If you do not want to end the command, nohup is required,
Add a nohop space before the command to continue running after exiting.