Cisco CSACS-1121-K9 Reference Guide - Page 36

Command-Line Completion, show running-configuration, sh run

Page 36 highlights

Navigating the CLI Commands Chapter 2 Using the ACS Command Line Interface Pressing the Tab key: • At the beginning of a line, lists all the short-form options. • When you enter a partial command, the system lists all the short form options beginning with those characters. • When only one possible option is available, the system fills in the option automatically. Ctrl-c Aborts the sequence. Breaks out of any executing command and returns to the previous mode. Ctrl-d Exits the ACS Configuration mode and returns to the EXEC mode. Ctrl-z Exits the Configuration mode and returns to the previous configuration mode. ? You can get a list of the available commands by entering a question mark (?) at the prompt (see Getting Help, page 2-10). Command-Line Completion Command-line completion makes the ACS CLI more user-friendly. It saves you extra key strokes and helps out when you cannot remember a command's syntax. For example, in the show running-configuration command: acs/admin# show running-configuration You could have used: acs/admin# sh run ACS expands the command sh run to show running-configuration. Another shortcut is pressing the Tab key after you type sh; the ACS CLI fills in the best completion, in this case show. If the ACS CLI does not understand a command, it repeats the entire command line and places a caret symbol (^) under the point at which it could not parse the command. For example: acs/admin# show unning-configuration ^ % Invalid input detected at '^' marker. The caret symbol (^) points to the first letter in the command line that ACS does not understand. Usually, this means that you need to provide additional arguments to complete the command or you mispelled the command. In this case, you omitted the "r" in the "unning" command. To fix the error, retype the command. In another form of command-line completion, you can start a command by entering the first few characters, then pressing the Tab key. As long as you can match one command, the ACS CLI will complete the command. For example, if you type sh and press Tab, ACS completes the sh with show. If ACS does not complete the command, you can enter a few more letters and press Tab again. For more information, see Tab, page 2-11. 2-12 CLI Reference Guide for the Cisco Secure Access Control System 5.1 OL-18996-01

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190

2-12
CLI Reference Guide for the Cisco Secure Access Control System 5.1
OL-18996-01
Chapter 2
Using the ACS Command Line Interface
Navigating the CLI Commands
Pressing the
Tab
key:
At the beginning of a line, lists all the short-form options.
When you enter a partial command, the system lists all the short form options beginning with those
characters.
When only one possible option is available, the system fills in the option automatically.
Ctrl-c
Aborts the sequence. Breaks out of any executing command and returns to the previous mode.
Ctrl-d
Exits the ACS Configuration mode and returns to the EXEC mode.
Ctrl-z
Exits the Configuration mode and returns to the previous configuration mode.
?
You can get a list of the available commands by entering a question mark (
?
) at the prompt (see
Getting
Help, page 2-10
).
Command-Line Completion
Command-line completion makes the ACS CLI more user-friendly. It saves you extra key strokes and
helps out when you cannot remember a command’s syntax.
For example, in the
show running-configuration
command:
acs/admin#
show running-configuration
You could have used:
acs/admin#
sh run
ACS expands the command
sh run
to
show running-configuration
.
Another shortcut is pressing the
Tab
key after you type
sh
; the ACS CLI fills in the best completion, in
this case
show
.
If the ACS CLI does not understand a command, it repeats the entire command line and places a caret
symbol (^) under the point at which it could not parse the command.
For example:
acs/admin#
show unning-configuration
^
% Invalid input detected at ‘^’ marker.
The caret symbol (^) points to the first letter in the command line that ACS does not understand. Usually,
this means that you need to provide additional arguments to complete the command or you mispelled the
command. In this case, you omitted the “r” in the “unning” command. To fix the error, retype the
command.
In another form of command-line completion, you can start a command by entering the first few
characters, then pressing the
Tab
key. As long as you can match one command, the ACS CLI will
complete the command. For example, if you type
sh
and press
Tab
, ACS completes the
sh
with
show
. If
ACS does not complete the command, you can enter a few more letters and press
Tab
again. For more
information, see
Tab, page 2-11
.