Command Line Commands Flashcards

Deck of command line commands and their use cases

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
Q

Ctrl + P or Up arrow

A

Shows the previous command

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

Ctrl + N or Down arrow

A

Shows the next command

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

terminal history

A

Turns command history on

28
Q

terminal no history

A

Turns command history off

29
Q

terminal history size <0-256>

A

Sets the number of lines in the history buffer

30
Q

show history

A

Shows all the commands in the history buffer

31
Q

Command Editing Facts

A

The IOS command line interface (CLI) provides shortcuts that make keyboard input easier.

32
Q

Tab

A

Completes a command name entry that has been partially entered.

33
Q

Ctrl + A

A

Moves to the beginning of the line.

34
Q

Ctrl + E

A

Moves to the end of a line.

35
Q

Ctrl + B or Left Arrow

A

Goes forward one character.

36
Q

Esc, B

A

Goes back one word. Note that you must release the Esc key before pressing B.

37
Q

Esc, F

A

Moves forward one word. Note that you must release the Esc key before pressing F.

38
Q

Ctrl + Z

A

Quits a configuration mode.

39
Q

terminal editing

A

Turns advanced editing on.

40
Q

terminal no editing

A

Turns advanced editing off.

41
Q

Backspace

A

Removes the character to the left of the cursor.

42
Q

Ctrl + D

A

Removes the character at the cursor.

43
Q

Ctrl + K

A

Removes all characters from the cursor to the end of the command line.

44
Q

Esc, D

A

Removes all characters from the cursor to the end of the word. Note that you must release the Esc key before pressing D.

45
Q

Ctrl + U or Ctrl + K

A

Removes all characters from the cursor to the end of the command line.

46
Q

Ctrl + W

A

Removes the word to the left of the cursor.

47
Q

Router(config)# hostname [name]

A

Changes the name of the router.

48
Q

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

A

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
Q

Router(config-if)# description [description text]

A

Sets a description for a specific interface

50
Q

Router# config t
Router(config)# hostname ATL1
ATL1(config)#

A

Sets the hostname of the router to ATL1

51
Q

Router(config)# int ser 0
Router(config-if)# description ATL to NYC

A

Adds the description ATL to NYC for the first serial interface on the router.

52
Q

banner and banner motd

A

Sets the message-of-the-day (MOTD) banner. The MOTD banner displays immediately after a connection is made.

53
Q

banner login

A

Sets the login banner. The login banner displays after the MOTD banner and before the login prompt.

54
Q

banner exec

A

Sets the exec banner. The exec banner displays after a successful login.

55
Q

banner incoming

A

Sets the incoming banner. The incoming banner displays for a reverse Telnet session.

56
Q

no banner type

A

Removes the specified banner.

57
Q

Router(config)# enable secret password

A

Sets the encrypted password used for privileged mode access. The enable secret should always be used if it exists.

58
Q

Router(config)# enable password password

A

Sets the unencrypted password for privileged mode access. This password is used if enable secret is not set.

59
Q

Router(config)# Line console interface

A

This global config command allows a user to enter console configuration mode. The zero identifies the console interface (usually there is only one.)

60
Q

Router(config)# Line vty vty line [0-15]

A

This global config command allows a user to enter line VTY mode.

61
Q

Router(config-line)# Login

A

VTY access can be enabled using the login command.

62
Q

Router(config-line)# no enable secret
Router(config-line)# no enable password
Router(config-line)# no login
Router(config-line)# no password

A

Removes the password. The no login command disables password checking.

63
Q

Service-password-encryption

A

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
Q

do show run

A

reveals passwords (does not show if passwords are encrypted)

65
Q
A