How to send a job to background?

0182

To send a job to the background in a Linux terminal, follow these steps:

  1. Start a job in the foreground. For example, you can run a command like:

    sleep 600
  2. Suspend the job by pressing Ctrl+Z. This will pause the job and put it in a suspended state.

  3. Send the job to the background by using the bg command. For example:

    bg %1

    Here, %1 refers to the job number. You can check the job number by running the jobs command.

After executing these steps, the job will continue running in the background, allowing you to use the terminal for other commands.

0 Comments

no data
Be the first to share your comment!