Hamilton LaboratoriesHamilton C shell 2012User guideBuiltin utilities

history

Oregon Coast

history
Previous | Next

        Display the History List

Usage:  history [-srh-] [ n [m] ]

   Display commands from the history list.  If no operands are given,
   show the entire list.  If a single integer 'n' is specified, display
   the last n commands.  If both integers 'n' and 'm' are given, then:

      if m >= n:       Display commands numbered n through m.
      if m < n:        Display m commands, beginning at command n.

   (The size of the list is controlled by the history variable, changed 
   using the set command.)

Options:

   -s   Short form:  Leave off the command numbers.
   -r   Reverse order:  Show the oldest first.
   -h   Help.  (This screen.)
   --   End of options.

(The slash, "/", may be used instead of a minus to introduce
options.  To specify a different set of characters to introduce
options, use the SWITCHCHARS environmental variable.)

Previous | Next