2.5.2 Example for Using Shortcut Keys
In this example, shortcut keys are assigned to frequently-used commands. You can press the
shortcut keys instead of inputting the commands. This facilitates user operations and improves
efficiency.
Context
If the login router supports shortcut keys, any user regardless of user level can use these shortcut
keys.
Procedure
Step 1 Correlate Ctrl_U with the display local-user command and run the shortcut keys.
<Huawei> system-view
[Huawei] hotkey ctrl_u "display local-user"
NOTE
When defining shortcut keys for a command, use double quotation marks to quote the command if the
command consisting of multiple words, which are separated by spaces. No double quotation marks are
required for single-word commands.
Step 2 Press Ctrl_U when the prompt [Huawei] appears.
[Huawei] display local-user
----------------------------------------------------------------------------
User-name State AuthMask AdminLevel
----------------------------------------------------------------------------
admin A H -
root A A -
----------------------------------------------------------------------------
Total 2 user(s)
----End
Huawei AR1200 Series Enterprise Routers
Configuration Guide - Basic Configuration 2 CLI Overview
Issue 04 (2012-05-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
29