Command Line Commands Flashcards
Deck of command line commands and their use cases
show running-configuration
Configuration that is currently running on the device’s memory.
show startup-configuration
Configuration that will be loaded on restart.
show version
The following version information:
Hardware configuration
Running IOS version
ROM bootstrap version
RAM and processor information
show flash
The following flash information:
- Size of the configuration files
- Available flash memory
- Information for all IOS image files stored
on the device
show clock
The current time and date of the device.
show history
Commands in the command history list.
show interface
Information about a router’s interface including:
- Interface status (whether it’s up or down)
- Utilization
- Protocol status on the interface
- Errors
- Maximum transmission unit (MTU)
show ip interface
Information about the configuration of the IP protocols on each interface, including:
- IP address
- Layer 2 status
- Layer 3 status
show ip route
The following routing table information:
- Networks the router can reach
- Metric
- Route to each network
Router# copy run start
Saves the contents of the running-config file to NVRAM.
Router# copy start run
Copies the startup-config file into RAM.
Router# copy run tftp
Saves the contents of the running-config file to a TFTP server.
Router# copy start tftp
Saves the contents of the startup-config file to a TFTP server.
Router# copy tftp start
Copies a configuration file from the TFTP server into NVRAM.
Router# copy tftp run
Copies a configuration file from the TFTP server into RAM.
Router# copy flash tftp
Copies the IOS image to the TFTP server. When using this command, you will be prompted for the destination file name and address.
Router# erase flash
Deletes the contents of Flash memory (deletes the IOS image).
Router# erase start
Erases the contents of the startup-config file.
Router# erase nvram
Deletes the contents of NVRAM (which also erases startup-config).
?
Displays a list of commands available in the current mode
Command ?
Displays keywords and arguments for the specified command
Partial_Command + Tab
Inserts the full command from a partial command
Help Prompts
WORD - Type a one-word response
LINE - Type a multiple-word response
[0-4567] - Type a number within the provided range
[0-FFFFFF] - Type a number within the range in brackets
[cr]> - The command is complete as typed
A.B.C.D - Type an IP address
Command History
The command history feature saves you time by eliminating the need to retype a command you recently entered. Command history temporarily stores a list of commands you have used. Commands stored in command history can be recalled by the user. By default, the system stores up to 10 command lines, but this number can be increased or decreased as needed. The following table describes how to use command history.
Ctrl + P or Up arrow
Shows the previous command
Ctrl + N or Down arrow
Shows the next command