Previous Topic: Shortcut KeysNext Topic: Special Features


Command History

selang stores executed commands in a history list. Use the up and down arrow keys to display commands in the command line from the history list. To see only the commands that start with a specific character or string, type the beginning of the command before using the up and down arrows. When you press Enter, the text currently displayed in the command line is executed.

To view previously issued commands, enter the history command.

The selang command shell supports the following shortcuts that use the commands stored in the history list:

Shortcut

Runs

^^ [string]

The previous command. If you specify string, selang appends it to the original command.

^n [string]

The nth command in the history list, where n is a positive integer. If you specify string, selang appends it to the original command.

^-n [string]

The nth command from the end of the list, where n is a positive integer. If you specify string, selang appends it to the original command.

^mask [string]

The most recently issued command that begins with mask, where mask is a text string. If you specify string, selang appends it to the original command.

Note: On Windows, you can use the F7 key to view the history list.

More information:

history Command—Show Previously Issued Commands