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
Save this page to any social bookmarking site! Share · Search · Market · Directory
2015-11-01 · John December · Contact · Terms of Use © December Communications, Inc.