Welcome to the Linux Foundation Forum!

LFS207. 14. PROCESSES. Background jobs

Options

Good day!

  1. Section Background and Foreground Processes, I quote: "The background job will run at a lower priority, allowing interactive work to go smoothly. You can also log off the terminal window without affecting the background job"
  2. Section Managing Jobs: "The background jobs are still somewhat connected to the terminal window, in that if you log off, jobs will no longer show the jobs started from that window."

I assume there is a contradiction in these sentences. Could you clarify this. Thank you in advance

Best Answer

  • luisviveropena
    luisviveropena Posts: 1,158
    edited November 2023 Answer ✓
    Options

    Hi @nikitavl13,

    1.- "You can also log off the terminal window without affecting the background job"
    That means that you can start the process (used & at the end), then leave the terminal and the process will keep running. It won't stop working.

    2.- "The background jobs are still somewhat connected to the terminal window, in that if you log off, jobs will no longer show the jobs started from that window."
    That means if you started a process (used & at the end), and then you leave the terminal, you won't be able to see what are the jobs associated to that terminal.

    That's it! Sometimes is useful to do some tests, so you can get the idea.

    Many regards,
    Luis.

Categories

Upcoming Training