Setup guide
If you've typed just the common part, pressing the tab key once has no effect. However, pressing it
for the second time shows all possible completions in compact form:
[admin@Wandy] > interface set e[Tab]_
[admin@Wandy] > interface set ether[Tab]_
[admin@Wandy] > interface set ether[Tab]_
ether1 ether5
[admin@Wandy] > interface set ether_
The [Tab] key can be used almost in any context where the console might have a clue about
possible values - command names, argument names, arguments that have only several possible
values (like names of items in some lists or name of protocol in firewall and NAT rules).You
cannot complete numbers, IP addresses and similar values.
Another way to press fewer keys while typing is to abbreviate command and argument names. You
can type only beginning of command name, and, if it is not ambiguous, console will accept it as a
full name. So typing:
[admin@Wandy] > pi 10.1 c 3 s 100
equals to:
[admin@Wandy] > ping 10.0.0.1 count 3 size 100
Notes
Pressing [Tab] key while entering IP address will do a DNS lookup, instead of completion. If what
is typed before cursor is a valid IP address, it will be resolved to a DNS name (reverse resolve),
otherwise it will be resolved directly (i.e. to an IP address). To use this feature, DNS server must be
configured and working. To avoid input lockups any such lookup will timeout after half a second,
so you might have to press [Tab] several times, before the name is actually resolved.
It is possible to complete not only beginning, but also any distinctive substring of a name: if there is
no exact match, console starts looking for words that have string being completed as first letters of a
multiple word name, or that simply contain letters of this string in the same order. If single such
word is found, it is completed at cursor position. For example:
[admin@Wandy] > interface x[TAB]_
[admin@Wandy] > interface export _
[admin@Wandy] > interface mt[TAB]_
[admin@Wandy] > interface monitor-traffic _
Additional Information
Description
Built-in Help
The console has a built-in help, which can be accessed by typing ?. General rule is that help shows
what you can type in position where the ? was pressed (similarly to pressing [Tab] key twice, but in
verbose form and with explanations).
Internal Item Numbers
You can specify multiple items as targets to some commands. Almost everywhere, where you can
write the number of item, you can also write a list of numbers:
[admin@Wandy] > interface print
Flags: X - disabled, D - dynamic, R - running