Exploring Command Abbreviations
You can abbreviate commands and keywords by entering the first few characters of a command. The abbreviation must include sufficient characters to make it unique from other commands or keywords. If you are having trouble entering a command, check the system prompt and enter the question mark (?) for a list of available commands. You might be in the wrong command mode or using incorrect syntax.
Example 2-11 illustrates various command abbreviations.
Example 2-11 Command Abbreviations
!
sh run
translates to
show running-config, int e 1/2
translates to
interface
ethernet 1/2
, and conf t translates
configure terminal.
N9K# sh run
!Command: show running-config
!Running configuration last done at: Mon Nov 8 09:57:14 2021
!Time: Tue Nov 9 08:42:28 2021
version 9.3(5) Bios:version 05.45
hostname N9K
vdc N9K id 1
limit-resource vlan minimum 16 maximum 4094
limit-resource vrf minimum 2 maximum 4096
limit-resource port-channel minimum 0 maximum 511
limit-resource u4route-mem minimum 248 maximum 248
limit-resource u6route-mem minimum 96 maximum 96
limit-resource m4route-mem minimum 58 maximum 58
limit-resource m6route-mem minimum 8 maximum 8
limit-resource vni_bd minimum 4096 maximum 4096
feature interface-vlan
feature lldp
<output omitted>
N9K#
conf t
Enter configuration commands, one per line. End with CNTL/Z.
N9K(config)#
int e 1/2
N9K(config-if)#
Exploring the no Form of a Command
Almost every configuration command has a โnoโ form that can be used to disable a feature, revert to a default value, or remove a configuration. Example 2-12 illustrates the no form of the feature command.
Example 2-12 The no Form of a Command
Click here to view code image N9K#
configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
N9K(config)#
feature tacacs+
N9K(config)#
show feature | include tacacs
tacacs 1 enabled
N9K(config)#
no feature tacacs+
N9K(config)#
show feature
|
include tacacs
tacacs 1 disabled
N9K(config)#