Difference between revisions of "Shell/Recall Previous Commands"

From Coder Merlin
imported>Anton-krom
Line 1: Line 1:
== Recall Previous Commands ==
Sometimes it's expedient to quickly recall a previous command without the need to re-type it.  The most common means of accomplishing this is to use the up-arrow.  Let's try it:
Sometimes it's expedient to quickly recall a previous command without the need to re-type it.  The most common means of accomplishing this is to use the up-arrow.  Let's try it:
{{ConsoleLine|john-williams@codermerlin:~$ |ls}}
{{ConsoleLine|john-williams@codermerlin:~$ |ls}}

Revision as of 16:20, 12 December 2021

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 re-type it. The most common means of accomplishing this is to use the up-arrow. Let's try it:

john-williams@codermerlin:~$  ls

Now, let's repeat the command, but rather than type ls again, try typing the up-arrow:

john-williams@codermerlin:~$  

Try pressing the and several times.

ObserveObserveIcon.png
Observe, Ponder, and Journal: : Section 5
  1. What happens each time you press the ?
  2. What happens each time you press the ?