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.

CommandMeaning
$ historydisplay 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
search Search · star Market
2023-06-01 · John December · Terms © johndecember.com