Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-49772: How to background a command executed in Linux

Authentication Service ,  

15 March,21 at 08:44 PM

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 exit the process and then type the following command below to background it:

$ bg

NOTE: At this point it is possible to run commands without interrupting the command cinfo -H currently running in the background.

User-added image

2.)  To stop the background process cinfo -H. Type the following command below:

$ fg

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"

User-added image