beautypg.com

Using the do command as a shortcut, Completing network os cli commands – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 43

background image

Network OS CLI keyboard shortcuts (Continued)

TABLE 2

Keystroke

Description

Ctrl+A

Moves the cursor to the beginning of the command line.

Ctrl+E

Moves the cursor to the end of the command line.

Esc B

Moves the cursor back one word.

Esc F

Moves the cursor forward one word.

Ctrl+Z

Returns to privileged EXEC mode.

Ctrl+P (or the up arrow key)

Displays commands in the history buffer with the most recent command
displayed first.

Ctrl+N (or the down arrow key) Displays commands in the history buffer with the most recent command

displayed last.

NOTE
In privileged EXEC mode, use the show history command to list the commands most recently entered.
The switch retains the history of the last 1000 commands entered for the current session.

Using the do command as a shortcut

You can use the do command to save time when you are working in any configuration mode and you
want to run a command in privileged EXEC mode.

For example, if you are configuring LLDP and you want to execute a privileged EXEC mode command,
such as the dir command, you would first have to exit the LLDP configuration mode. By using the do
command with the dir command, you can ignore the need to change configuration modes, as shown in
the following example.

switch(conf-lldp)# do dir

Contents of flash://

-rw-r----- 1276 Wed Feb 4 07:08:49 2009 startup_rmon_config

-rw-r----- 1276 Wed Feb 4 07:10:30 2009 rmon_config

-rw-r----- 1276 Wed Feb 4 07:12:33 2009 rmon_configuration

-rw-r----- 1276 Wed Feb 4 10:48:59 2009 startup-config

Completing Network OS CLI commands

To complete the spelling of commands or keywords automatically, begin typing the command or
keyword and then press Tab. For example, at the CLI command prompt, type te and press Tab:

switch# te

The CLI displays the following command.

switch# terminal

Using the do command as a shortcut

Network OS Administrator’s Guide

43

53-1003225-04