Since we have understood the command to check processes, we will learn more about managing different processes as follows:
&.Hello as the background process, then the command would be as follows:
$ Hello &
&, then it starts running as the background process.For example, we will issue a simple sleep command, which creates a new process. This process sleeps for the duration, which is mentioned in the integer value next to the sleep command:
10000 seconds. This means we will not be able to use any other command from the same terminal:$ sle ep 10000
sleep command.
$ sleep 10000 &
The preceding command will create a new process, which will be put to sleep for 10000 seconds; but this time, it will start running in the background. Therefore, we will be able to enter the next command in the Bash terminal.
$ sleep 20000 & $ sleep 30000 & $ sleep 40000 &
$ jobs

The jobs command lists all the processes running in terminal, including foreground and background processes. You can clearly see their status as running, suspended, or stopped. The numbers in [] show the job ID. The + sign indicates which command will receive fg and bg commands by default. We will study them in the next topics.
$ fg 3
The preceding command will make the job number 3 to run in the foreground instead of the background.
If we want to make the process to stop executing and get it suspended, then press Ctrl + Z. This key combination makes the foreground process to stop executing. Please note that the process has stopped but not terminated.

$ bg job_number $ bg 3
The preceding command will make suspended job numbered process 3 to run in background.
$ jobs –l // This will list jobs with pid $ kill pid or $ kill %job_id // This will kill job $ kill %3