Reference: history
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:59:25Z

#

| Chapter 5 The C Shell |

## history

    history [options]

Display the list of history events. (History syntax is discussed earlier in "Command History.")

### Options

-h

  Print history list without event numbers.

-r

  Print in reverse order; show oldest commands last.

n

  Display only the last n history commands, instead of the number set by the history shell variable.

### Example

To save and execute the last five commands:

>     history -h 5 > do_it
>     source do_it

Reference: hashstat |  | Reference: if