background image
Lab A.2: Editing and Help Features
573
At this point, you can press the spacebar to get another page of infor-
mation, or you can press Return to go one command at a time. You
can also press any other key to quit and return to the prompt.
2.
To find commands that start with a certain letter, use the letter and the
question mark (
?
) with no space between them.
Router#
c?
clear clock configure connect copy
Router#c
Notice that by typing
c?
, we received a response of all the commands
that start with
c
. Also notice that the
Router#
prompt returned
with our command still present. This is helpful when you have long
commands and need the next possible command.
3.
To find the next command in a string, type the first command and then
a question mark. Set the router's clock by typing
clock ?
and follow-
ing the help screens; set the router's time and date.
Router#
clock ?
set Set the time and date
Router#
clock set ?
hh:mm:ss Current Time
Router#
clock set 10:30:10 ?
<1-31> Day of the month
MONTH Month of the year
Router#
clock set 10:30:10 28 ?
MONTH Month of the year
Router#
clock set 10:30:10 28 jun ?
<1993-2035> Year
Router#
clock set 10:30:10 28 jun 2002 ?
<cr>
Router#
By using the
clock
command, then a space and a question mark, you
will get a list of the next possible commands and what they do. Notice
that we just kept typing a command, a space, and then a question
mark until
<cr>
(carriage return) was our only option.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com