- 1 -
Enter the following commands one by one:
ls -a
ls -l
ls --color
history 4
See how that last command displayed the last 4 history entries:
493 ls -a
494 ls -l
495 ls --color
496 history 4
- 2 -
Enter:
!ls
...to re-enter the last command that that begun with ls (in this case ls --color). Note that !l would have worked just as well in this instance.
|