From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Job control

Job control - Linux Tutorial

From the course: Linux Tips

Job control

- When you are working in a shell, usually whatever process is running takes full control of the shell, meaning that if it runs for a long time, we're stuck waiting until it finishes before we can do something else. There are ways around this, like opening up a bunch of separate shells, or using a multiplexer like Screen or tmux. But there's another strategy we can use as well, and that's job control. Many shells achieve this in a similar way, and here, I'll use bash to show you the basics. The basic idea of job control is that we have a foreground, or whatever active process is operating visibly in the terminal, and the background, where processes are disconnected from the display, and continue to operate as normal while allowing the user to keep using the current shell. We can switch between these, moving processes or jobs to the background and back into the foreground as we need to work with them. In fact, it's…

Contents