Step 1/1: Back to the foreground

fg brings a background or stopped job back to the foreground: the terminal waits for it, and keyboard input goes to it (Ctrl+C ends it, Ctrl+Z stops it again). fg %1 picks a job number.

$ fg %1
Fundamentalsfgjobsprocess
Bring a job back to the foreground
There is a stopped job in the background, sleep 4. Bring it to the foreground and let it finish (a few seconds at most).

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.

bgNext lesson:nohup