Cisco Cisco ASR 5000

Page of 9109
  Command Line Interface Overview 
Entering and Viewing CLI Commands  ▀   
 
Command Line Interface Reference, StarOS Release 18  ▄  
 
   
139 
 
A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to 
arithmetic expressions, by using various operators to combine smaller expressions. For additional information, refer to 
ISO/IEC/IEEE 9945:2009 Information technology – Portable Operating System Interface (POSIX®) Base 
Specifications, Issue 7
more Command 
Use the | more keyword to pause the terminal each time the terminal window reaches its display limit. Press any key to 
display the next screen. The function of this keyword is identical to the autoless command, except that you must 
manually enter it on a command-by-command basis. 
Viewing Command History 
To view a history of all commands line by line, simply scroll up or down with the <up arrow> and <down arrow
cursor keys on the keyboard. 
The operating system supports EMACS-style text editing commands. This standard UNIX text editor format allows you 
to use keyboard-based shortcut keys for maneuvering around the CLI. The following table lists these available shortcut 
keys. 
Table 5.  EMACS Shortcut Keystrokes 
Shortcut Keys
 
Description
 
<Ctrl + p> and <up arrow>
 
Recalls previous command in the command history
 
<Ctrl + n> and <down arrow>
 
Recalls next command in the command history
 
<Ctrl + f> and <right arrow>
 
Moves cursor forward by one character in command line
 
<Ctrl + b> and <left arrow>
 
Moves cursor backward by one character in command line
 
<Esc> + <f>
 
Moves cursor forward by one word in command line
 
<Esc> + <b>
 
Moves cursor backward by one word in command line
 
<Ctrl> + <a>
 
Moves cursor to the beginning of the command line
 
<Ctrl> + <e>
 
Moves cursor to the end of the command line
 
<Ctrl> + <k>
 
Deletes the current command line from the insertion point to the end of the line
 
<Ctrl> + <u>
 
Deletes the current command line from the insertion point to the beginning of the line
 
<Ctrl> + <d>
 
Deletes a single character in the current command line
 
<Esc> + <d>
 
Deletes a word in the current command line
 
<Ctrl> + <c>
 
Quits editing the current line
 
<Ctrl> + <l>
 
Refreshes the display
 
<Ctrl> + <t>
 
Transposes (or switches) the two characters surrounding the insertion point