The history command lets you re-execute commands without retyping them. You also can use the history command to modify old commands--for example, to fix typographical errors.
To get a history of all the commands you typed, type history.

The history command lets you re-execute commands without retyping them. You also can use the history command to modify old commands--for example, to fix typographical errors.
To get a history of all the commands you typed, type history.