Linux 101: Bringing processes to background and foreground

Feb 20, 2023 · 1 min read · Post a comment

Linux processes present a running instances of a program or multiple ones, on a Linux OS. You can think of it as a program that is currently executing and performing a task on the computer. Each process has its own process ID (PID). It can be started by a user or by the system itself, and on top of that it can run in the foreground or in the background.


  • Linux bash environment


bring process to background

Step 1. Press Ctrl + Z to suspend it.

Step 2. Run the following command, so you could send it to the background:


bring process to foreground

Step 1. List background processes:


Step 2. Look for the job number (ID) and copy it to the dashboard.

Step 3. Run the following command to bring it back to the foreground:

fg <job_number>

Alternately, you could achieve the same by running: bg <job_number>.


If you have any feedback or constructive criticism, feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.