Using CLI Command Completion
To complete the
show interfacescommand, do the following:user@host>showin<Spacebar>terfaces<Enter>Physical interface: at-0/1/0, Enabled, Physical link is UpInterface index: 11, SNMP ifIndex: 65Link-level type: ATM-PVC, MTU: 4482, Clocking: Internal, SONET modeSpeed: OC12, Loopback: None, Payload scrambler: EnabledDevice flags : Present RunningLink flags : 0x01[...Output truncated...]To display a list of all log files whose names start with the string "messages," and then display the contents of one of the files, do the following:
user@host>show log mes?Possible completions:<filename> Log file to displaymessages Size: 1417052, Last changed: Mar 3 00:33messages.0.gz Size: 145575, Last changed: Mar 3 00:00messages.1.gz Size: 134253, Last changed: Mar 2 23:00messages.10.gz Size: 137022, Last changed: Mar 2 14:00messages.2.gr Size: 137112, Last changed: Mar 2 22:00messages.3.gz Size: 121633, Last changed: Mar 2 21:00messages.4.gz Size: 135715, Last changed: Mar 2 20:00messages.5.gz Size: 137504, Last changed: Mar 2 19:00messages.6.gz Size: 134591, Last changed: Mar 2 18:00messages.7.gz Size: 132670, Last changed: Mar 2 17:00messages.8.gz Size: 136596, Last changed: Mar 2 16:00messages.9.gz Size: 136210, Last changed: Mar 2 15:00user@host> show log mes<Tab>sages.4<Tab>.gz<Enter>Jan 15 21:00:00 myhost newsyslog[1381]: logfile turned over[...Output truncated...]