If shortcut keys are defined on a router, all users can use the shortcut keys regardless of their levels.
If a user does not have the right to execute the command associated with a defined shortcut key, the system makes no response when the user presses this shortcut key.
The configuration roadmap is as follows:
Define the shortcut key Ctrl+U and associate it with the display ip routing-table command.
Press Ctrl+U at the prompt of [~HUAWEI].
To complete the configuration, you need the following data:
Shortcut key name
Name of the command to be associated with the shortcut key
<HUAWEI> system-view [~HUAWEI] hotkey ctrl_u "display ip routing-table" [*HUAWEI] commit
[~HUAWEI] display ip routing-table Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route ------------------------------------------------------------------------------ Routing Table: Public Destinations : 8 Routes : 8 Destination/Mask Proto Pre Cost Flags NextHop Interface 10.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 10.2.0.0/16 Direct 0 0 D 10.3.150.51 GigabitEthernet0/0/0 10.3.150.51/32 Direct 0 0 D 127.0.0.1 InLoopBack0 10.3.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0