Recall Previous Commands
From Coder Merlin
< Shell
Revision as of 13:22, 22 February 2023 by Jeff-strong (talk | contribs) (Editorial review and minor corrections)
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Sometimes it's expedient to quickly recall a previous command without the need to retype it. The most common means of doing this is to use the up arrow. Let's try it:
john-williams@codermerlin:~$ ls
Now, let's repeat the command, but rather than typing in ls again, try pressing the up arrow key:
john-williams@codermerlin:~$ ↑
Try pressing the ↑ and ↓ several times.
Observe
Observe, Ponder, and Journal: : Section 5
- What happens each time you press the ↑?
- What happens each time you press the ↓?