Comments, Special characters, Comments 155 – Intel BLADE SERVER IXM5414E Manuale d'uso

Pagina 178: Special characters 155

Advertising
background image

Command Line Interface Management

155

character strings

Use double quotation marks to identify character strings, for example, “System
Name with Spaces”. An empty string (“”) is not valid.

Comments

When you are writing a test or configuration script you may add comments by using the “#”
character to flag the beginning of a comment. The comment flag character can begin a word
anywhere on the command line, and all input following this character will be ignored. Any
command line that begins with the character “#” is recognized as a comment line and is ignored by
the parser.

For example:

#Script file for displaying the ip interface

#Display information about interfaces

show ip interface ext.1 #Displays information about the first external interface

#Display information about the next interface

show ip interface ext.2

#End of the script file

Special characters

Certain special key combinations speed up use of the CLI. They are listed in this section. Also, help
is available for the CLI by typing HELP:

DEL, BS

delete previous character

Ctrl-A

go to beginning of line

Ctrl-E

go to end of line

Ctrl-F

go forward one character

Ctrl-B

go backward one character

Ctrl-D

delete current character

Ctrl-H

display command history or retrieve a command.

Ctrl-U, X

delete to beginning of line

Ctrl-K

delete to end of line

Ctrl-W

delete previous word

Ctrl-T

transpose previous character

Ctrl-P

go to previous line in history buffer

Ctrl-N

go to next line in history buffer

Ctrl-Z

return to root command prompt

Tab, <SPACE>

command-line completion

Exit

go to next lower command prompt

!!

execute the most recent command

!-n

execute the nth most recent command

Advertising