How to Manage jobs in Ubuntu Server 20.04 LTS

Step 1 : Open a file or just start a blank session. With the text editor open, we can background it at any time by pressing Ctrl + Z on our keyboard. You should have seen some output similar to the following:

Step 2 : we see the job number of our process, its status, and then the name of the process. Even though the process of your text editor shows a status of Stopped, it's still running. You can confirm this by using the following variation of the ps command:

The output shows that I have 3 vim sessions in use

Step 3 : I gave you an example of the ps command to show that the process was still running in the background, but there's actually a dedicated command for that purpose, and that is the jobs command. If you execute the jobs command, you'll see in the output a list of all the processes running in background. Here's some example output:

Step 4 : We have the job ID on the left, I can bring up a specific background process by using its ID with the fg command: