Linux provides the ability to background / foreground commands in (real time) to prevent a user from launching multiple terminal sessions for troubleshooting purposes. This comes in handy when you run a command that takes a long time to return results.
Question: Is it possible to background a command to run other commands without having to launch a second terminal session? if so, how can this be done?
Answer: Yes, lets walk through an example on how this can be done.
1.) Enter the following command below for example:
$ cinfo -H
Then press the following keys CTRL + Z to exitthe process and then type the following command below to background it:
NOTE: At this point it is possible to run commands without interrupting the command cinfo -H currently running in the background.
2.) To stop the background process cinfo -H. Type the following command below:
Then press the following keys CTRL + C and this stops the cinfo -H process in the background from running. Last thing to do is confirm cinfo -H is not running in the background and to do this type, $ fg once more and you should see "no such job"