01 / 08
The trouble of nothing coming back
You have met this already.
~ $ sleep 60From the moment you type it, the prompt does not come back. For sixty seconds you can type nothing.
Nothing is broken. Type one command and the shell is built to wait until it finishes. That state of being in front is called the foreground.
The trouble comes with work that takes time.
- packing up a big file
- watching a log go by
- running a server
Losing a terminal for the duration is a waste.
What this lesson does is line up jobs in one terminal.