Command Line Commands Flashcards

Deck of command line commands and their use cases (65 cards)

1
Q

show running-configuration

A

Configuration that is currently running on the device’s memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

show startup-configuration

A

Configuration that will be loaded on restart.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

show version

A

The following version information:

Hardware configuration
Running IOS version
ROM bootstrap version
RAM and processor information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

show flash

A

The following flash information:

  • Size of the configuration files
  • Available flash memory
  • Information for all IOS image files stored
    on the device
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

show clock

A

The current time and date of the device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

show history

A

Commands in the command history list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

show interface

A

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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

show ip interface

A

Information about the configuration of the IP protocols on each interface, including:

  • IP address
  • Layer 2 status
  • Layer 3 status
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

show ip route

A

The following routing table information:

  • Networks the router can reach
  • Metric
  • Route to each network
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Router# copy run start

A

Saves the contents of the running-config file to NVRAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Router# copy start run

A

Copies the startup-config file into RAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Router# copy run tftp

A

Saves the contents of the running-config file to a TFTP server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Router# copy start tftp

A

Saves the contents of the startup-config file to a TFTP server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Router# copy tftp start

A

Copies a configuration file from the TFTP server into NVRAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Router# copy tftp run

A

Copies a configuration file from the TFTP server into RAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Router# copy flash tftp

A

Copies the IOS image to the TFTP server. When using this command, you will be prompted for the destination file name and address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Router# erase flash

A

Deletes the contents of Flash memory (deletes the IOS image).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Router# erase start

A

Erases the contents of the startup-config file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Router# erase nvram

A

Deletes the contents of NVRAM (which also erases startup-config).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

?

A

Displays a list of commands available in the current mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Command ?

A

Displays keywords and arguments for the specified command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Partial_Command + Tab

A

Inserts the full command from a partial command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Help Prompts

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Command History

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Ctrl + P or Up arrow
Shows the previous command
26
Ctrl + N or Down arrow
Shows the next command
27
terminal history
Turns command history on
28
terminal no history
Turns command history off
29
terminal history size <0-256>
Sets the number of lines in the history buffer
30
show history
Shows all the commands in the history buffer
31
Command Editing Facts
The IOS command line interface (CLI) provides shortcuts that make keyboard input easier.
32
Tab
Completes a command name entry that has been partially entered.
33
Ctrl + A
Moves to the beginning of the line.
34
Ctrl + E
Moves to the end of a line.
35
Ctrl + B or Left Arrow
Goes forward one character.
36
Esc, B
Goes back one word. Note that you must release the Esc key before pressing B.
37
Esc, F
Moves forward one word. Note that you must release the Esc key before pressing F.
38
Ctrl + Z
Quits a configuration mode.
39
terminal editing
Turns advanced editing on.
40
terminal no editing
Turns advanced editing off.
41
Backspace
Removes the character to the left of the cursor.
42
Ctrl + D
Removes the character at the cursor.
43
Ctrl + K
Removes all characters from the cursor to the end of the command line.
44
Esc, D
Removes all characters from the cursor to the end of the word. Note that you must release the Esc key before pressing D.
45
Ctrl + U or Ctrl + K
Removes all characters from the cursor to the end of the command line.
46
Ctrl + W
Removes the word to the left of the cursor.
47
Router(config)# hostname [name]
Changes the name of the router.
48
Router(config)# int serial 0/0 Router(config)# int s0/0 Router(config)# int Ethernet 0 Router(config)# int ether0 Router(config)# int FastEthernet 0/1 Router(config)# int Fa0/1 Router(config)# int Gigabit 0/1 Router(config)# int gi0/1
Enters the interface configuration mode for the first serial interface. You can use abbreviations for the interface type, such as: fa = FastEthernet gi = Gigabit s = Serial e = Ethernet
49
Router(config-if)# description [description text]
Sets a description for a specific interface
50
Router# config t Router(config)# hostname ATL1 ATL1(config)#
Sets the hostname of the router to ATL1
51
Router(config)# int ser 0 Router(config-if)# description ATL to NYC
Adds the description ATL to NYC for the first serial interface on the router.
52
banner and banner motd
Sets the message-of-the-day (MOTD) banner. The MOTD banner displays immediately after a connection is made.
53
banner login
Sets the login banner. The login banner displays after the MOTD banner and before the login prompt.
54
banner exec
Sets the exec banner. The exec banner displays after a successful login.
55
banner incoming
Sets the incoming banner. The incoming banner displays for a reverse Telnet session.
56
no banner type
Removes the specified banner.
57
Router(config)# enable secret password
Sets the encrypted password used for privileged mode access. The enable secret should always be used if it exists.
58
Router(config)# enable password password
Sets the unencrypted password for privileged mode access. This password is used if enable secret is not set.
59
Router(config)# Line console interface
This global config command allows a user to enter console configuration mode. The zero identifies the console interface (usually there is only one.)
60
Router(config)# Line vty vty line [0-15]
This global config command allows a user to enter line VTY mode.
61
Router(config-line)# Login
VTY access can be enabled using the login command.
62
Router(config-line)# no enable secret Router(config-line)# no enable password Router(config-line)# no login Router(config-line)# no password
Removes the password. The no login command disables password checking.
63
Service-password-encryption
It is important to note that the startup-config and running-config files show passwords in plain text. Because of this, you should encrypt your passwords using the global configuration service password-encryption command. This command provides a basic level of encryption to all unencrypted passwords within the config file. Note that these passwords are only lightly encrypted and can be easily broken. However, they do provide some level of security from someone looking over your shoulder. Rather than relying on this encryption, make sure to use the enable secret command for better encryption.
64
do show run
reveals passwords (does not show if passwords are encrypted)
65