The Unix history command gives you access to
previous Unix commands you have entered.
Enter the history command at the Unix prompt.
You can also see a
demonstration
of the history command.
| Command | Meaning |
| $ history | display
a list of recent commands you have entered; the
commands on this list are numbered |
| $ !! |
repeat the previous command |
| $ !n | (where n is a
number from your history list) repeat
the command numbered n in your history list |
| $ !string | (where string is
a series of characters) repeat the most recent command
in your history whose first characters match string |