cc/td/doc/product/software/ios121/121sup/121csum1
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Basic Command-Line Interface Commands

Basic Command-Line Interface Commands

This chapter explains the function and syntax of the basic command-line interface commands. For more information about defaults and usage guidelines, see the corresponding chapter of the Cisco IOS Configuration Fundamentals Command Reference, Release 12.1.

disable

To exit privileged EXEC mode and return to user EXEC mode, or exit to a lower privilege level, enter the disable EXEC command.

disable [level]

Syntax Description

level

(Optional) Specifies the user-privilege level.

editing

To disable Cisco IOS enhanced editing features, use the no form of this line configuration command. To reenable these features for a particular line, use the editing form of this command.

editing

no editing

Syntax Description

This command has no arguments or keywords.

enable

To enter privileged EXEC mode, or any other security level set by a system administrator, use the enable EXEC command.

enable [level]

Syntax Description

level

(Optional) Privileged level on which to log in.

end

To exit configuration mode, or any of the configuration submodes, use the end global configuration command.

end

Syntax Description

This command has no arguments or keywords.

exit

To exit any configuration mode or close an active terminal session and terminate the EXEC, use the exit command at the system prompt.

exit

Syntax Description

This command has no arguments or keywords.

full-help

To get help for the full set of user-level commands, use the full-help line configuration command.

full-help

Syntax Description

This command has no arguments or keywords.

help

To display a brief description of the help system, enter the help command.

help

Syntax Description

This command has no arguments or keywords.

history

To enable the command history function, use the history line configuration command. To disable the command history feature, use the no form of this command.

history

no history

Syntax Description

This command has no arguments or keywords.

history size

To change the command history buffer size for a particular line, use the history size line configuration command. To reset the command history buffer size to ten lines, use the no form of this command.

history size number-of-lines

no history size

Syntax Description

number-of-lines

Specifies the number of command lines that the system will record in its history buffer. The range is 0 to 256. The default is 10.

menu (EXEC)

To display a preconfigured user menu, use the menu EXEC command.

menu name

Syntax Description

name

The name of the menu.

more begin

To search the output of any more command, use the more begin command in EXEC mode. This command begins unfiltered output of the more command with the first line that contains the regular expression you specify.

more any-command | begin regular-expression

To search the remaining output of the more command, use the following command at the --More-- prompt:

/regular-expression

To filter the remaining output of the more command, use one of the following commands at the --More-- prompt:

-regular-expression

+regular-expression

Syntax Description

any-command

Any supported more command.

|

A vertical bar (the "pipe" symbol) indicates that an output processing specification follows.

regular-expression

Any regular expression found in more command output.

/

Specifies a search at a --More-- prompt that begins unfiltered output with the first line that contains the regular expression.

-

Specifies a filter at a --More-- prompt that only displays output lines that do not contain the regular expression.

+

Specifies a filter at a --More-- prompt that only displays output lines that contain the regular expression.

more exclude

To filter more command output so that it excludes lines that contain a particular regular expression, use the more exclude command in EXEC mode.

more any-command | exclude regular-expression

To search the remaining output of the more command, use the following command at the --More-- prompt:

/regular-expression

Syntax Description

any-command

Any supported more command.

|

A vertical bar (the "pipe" symbol) indicates that an output processing specification follows.

regular-expression

Any regular expression found in more command output.

/

Specifies a search at a --More-- prompt that begins unfiltered output with the first line that contains the regular expression.

more include

To filter more command output so that it only displays lines that contain a particular regular expression, use the more include command in EXEC mode.

more any-command | include regular-expression

To search the remaining output of the more command, use the following command at the --More-- prompt:

/regular-expression

Syntax Description

any-command

Any supported more command.

|

A vertical bar (the "|" symbol) indicates that an output processing specification follows.

regular-expression

Any regular expression found in more command output.

/

Specifies a search at a --More-- prompt that begins unfiltered output with the first line that contains the regular expression.

show begin

To search the output of any show command, use the show begin command in EXEC mode.

show any-command | begin regular-expression

To search the remaining output of the show command, use the following command at the --More-- prompt:

/regular-expression

To filter the remaining output of the show command, use one of the following commands at the --More-- prompt:

-regular-expression

+regular-expression

Syntax Description

any-command

Any supported show command.

|

A vertical bar (the "pipe" symbol) indicates that an output processing specification follows.

regular-expression

Any regular expression found in show command output.

/

Specifies a search at a --More-- prompt that begins unfiltered output with the first line that contains the regular expression.

-

Specifies a filter at a --More-- prompt that only displays output lines that do not contain the regular expression.

+

Specifies a filter at a --More-- prompt that only displays output lines that contain the regular expression.

show exclude

To filter show command output so that it excludes lines that contain a particular regular expression, use the show exclude command in EXEC mode.

show any-command | exclude regular-expression

To search the remaining output of the show command, use the following command at a --More-- prompt:

/regular-expression

Syntax Description

any-command

Any supported show command.

|

A vertical bar (the "|" symbol) indicates that an output processing specification follows.

regular-expression

Any regular expression found in show command output.

/

Specifies a search at a --More-- prompt that begins unfiltered output with the first line that contains the regular expression.

show history

To list the commands you have entered in the current EXEC session, use the show history EXEC command.

show history

Syntax Description

This command has no arguments or keywords.

show include

To filter show command output so that it only displays lines that contain a particular regular expression, use the show include command in EXEC mode.

show any-command | include regular-expression

To search the remaining output of the show command, use the following command at the --More-- prompt:

/regular-expression

Syntax Description

any-command

Any supported show command.

|

A vertical bar (the "|" symbol) indicates that an output processing specification follows.

regular-expression

Any regular expression found in show command output.

/

Specifies a search at a --More-- prompt that begins unfiltered output with the first line that contains the regular expression.

terminal editing

To enable the enhanced editing mode on the local line, use the terminal editing EXEC command. To disable the enhanced editing mode on the current line, use the no form of this command.

terminal editing

terminal no editing

Syntax Description

This command has no arguments or keywords.

terminal full-help

To get help for the full set of user-level commands, use the terminal full-help EXEC command.

terminal full-help

Syntax Description

This command has no arguments or keywords.

terminal history

To enable the command history feature for the current terminal session or change the size of the command history buffer for the current terminal session, use the terminal history EXEC command. To disable the command history feature or reset the command history buffer to its default size, use the no form of this command.

terminal history [size number-of-lines]

terminal no history [size]

Syntax Description

size

(Optional) Sets command history buffer size.

number-of-lines

(Optional) Specifies the number of command lines that the system will record in its history buffer. The range is 0 to 256. The default is 10.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed Jul 26 14:40:43 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.