O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

prompt — global

Synopsis

prompt string
no prompt string

Configures

The router prompt

Default

%h%p

Description

This command sets the prompt to the specified string. The string can have any combination of characters and escape sequences. The special characters are listed in Table 17-18. Use the no form of this command to set the system prompt to the default value.

Table 17-18. Escape sequences for the router prompt

Escape sequence

Meaning

%%

Percent character

%h

Hostname of the router

%n

TTY number for this EXEC session

%p

The prompt character; either > for user level or # for privileged level

%s

Space character

%t

Tab character

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required