8.74 HST (History of commands)

8.74.1 Function

The HST command displays a list of the last commands entered from the command line. Usually every
issued command is automatically added to the command recall history list. To prevent a command from
appearing in the command recall history list it must be prefixed with a hyphen (‘-‘) to make it a silent non-
echoing command.

8.74.2 Syntax

Descriptive

[ -1 ]

-] n

Diagram



~¬¬¬ -1 ¬¬¬®

¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ

n ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ



-

¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ



8.74.3 Parameter

-1

HST -1 is the same as HST without argument and retrieves the last entered
command.

[-]n

If n is a positive number then HST retrieves the n-th command from the list. If n is a
negative number then HST retrieves the n-th last command from the list.

L or 0

HST L or HST 0 (number "0") displays a list of the last ten commands entered on
the command line.

8.74.4 Examples

Example 1:

Display a list of the last ten commands entered.

HHC00013I Herc command: 'hst 0'

HHC02273I Index 30: 'aia'

HHC02273I Index 31: 'ar'

HHC02273I Index 32: 'clocks'

HHC02273I Index 33: 'cr'

HHC02273I Index 34: 'maxrates 60'

HHC02273I Index 35: 'help ds'

HHC02273I Index 36: 'gpr'

HHC02273I Index 37: 'http stop'

HHC02273I Index 38: 'http port 8080 noauth'

HHC02273I Index 39: 'http start'

Figure 150: HST command (display command recall history list)

Example 2:

Prevent a command from being added to the command recall history list and display a list of the last ten
entered commands.

HHC00013I Herc command: 'psw'

HHC02278I Program status word: 0000000000000000 0000000000000000

HHC02300I sm=00 pk=0 cmwp=0 as=pri cc=0 pm=0 am=24 ia=0

HHC00013I Herc command: 'hst 0'

HHC02273I Index 30: 'aia'

HHC02273I Index 31: 'ar'

HHC02273I Index 32: 'clocks'

HHC02273I Index 33: 'cr'

HHC02273I Index 34: 'maxrates 60'

HHC02273I Index 35: 'help ds'

HHC02273I Index 36: 'gpr'

HHC02273I Index 37: 'http stop'

HHC02273I Index 38: 'http port 8080 noauth'

HHC02273I Index 39: 'http start'

Figure 151: HST command (issue silent non-echoing command)

Previous Page Next Page