MPE/iX Shell and Utilities Reference Manual, Vol 1

history(1) MPE/iX Shell and Utilities history(1)
NAME
history — display command history
SYNOPSIS
history [–nr][first [last]]
DESCRIPTION
history displays commands that you executed previously. These commands make up your
command history.
By default, history displays a numbered list of the 16 most recent commands, from earliest
to most recent. By specifying values for first and last, you can display a specified range of
commands rather than the 16 most recent. For example,
history 1 10
displays commands 1 through 10.
The shell stores your command history in the file given by the variable
HISTFILE
;by
default, .sh_history. The variable
HISTSIZE
gives the number of commands kept in the
file; if
HISTSIZE
is not defined, the default is 128.
Options
history accepts the following options:
–n displays the commands but not the command numbers.
–r displays commands in reverse order, from most recent to earliest.
history is an alias defined with
alias history=’fc -l’
For further information, see fc(1).
ENVIRONMENT VARIABLES
history uses the following environment variables:
HISTFILE
contains the path name of the history file.
HISTSIZE
gives the maximum number of previous commands that are accessible.
Commands and Utilities 1-267