If you are a little bit familiar with Linux commands, you know that if you add & to the end of the command, it will run in the background.
Now the problem is how to bring the process back to the foreground?
It’s actually quite easy. If you have just one process running in the background, just use the command fg to bring it to foreground.
But if you have more than one processes running in the background, you need to know the job id of the desired process.
To know the job id, run the command below:
Its output should be something like this:
As you can see, the output shows the running jobs and their corresponding job ids. All you need to do is to use the command in the following fashion:
And the said job or process will be back in the foreground. For example, if I use fg %2, it will bring the conky process to the foreground.
I hope this quick tip helped you to bring a background process to foreground in Linux.