The fg Command

Just as you can send processes to the background, you can also bring them back to the foreground. This is done by using the foreground (fg) command. Let's return to our example. If you wanted to bring the at command back to the foreground, you would simply enter the following:

						>fg %10
					

With the fg command, you can quickly bring the process you want to work on to the foreground. When you are done working with this process, you can send it back again with the bg command.

Get SAMS Teach Yourself Unix in 10 Minutes 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.