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.

$ 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
Save this page to any social bookmarking site! Share · search Search · star Market
2020-04-25 · John December · Terms © December Communications, Inc.