Listing Jobs with jobs

A job is any program you interactively start that doesn’t then detach from the user and run on its own (like a daemon does). If you’re running an interactive program, you can press Ctrl+Z to suspend it. Then you can start it back in the foreground (using fg, covered next) or in the background (using bg, covered with fg).

While the program is suspended or running in the background, you can start another program. Then you have two jobs running. You can also start a program running in the background by appending an “&” like this:

matthew@seymour:~$ programname &

When started this way, a program runs as a background job. To list all the jobs you are running, you can use jobs:

matthew@seymour:~$ ...

Get Ubuntu Unleashed 2015 Edition: Covering 14.10 and 15.04, Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.