Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Displaying the Junos OS CLI Command and Word History

To display a list of recent commands that you issued, use the show cli history command:

user@host> show cli history 3 01:01:44 -- show bgp next-hop-database 01:01:51 -- show cli history 01:02:51 -- show cli history 3

You can press Esc+. (period) or Alt+. (period) to insert the last word of the previous command. Repeat Esc+. or Alt+. to scroll backwards through the list of recently entered words. For example:

user@host> show interfaces terse fe-0/0/0
Interface      Admin    Link    Proto     Local    Remote
fe-0/0/0       up       up  
fe-0/0/0.0     up       up      inet     192.168.220.1/30
user@host> <Esc>
user@host> fe-0/0/0

If you scroll completely to the beginning of the list, pressing Esc+. or Alt+. again restarts scrolling from the last word entered.

Published: 2013-01-15