cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
27601
Views
10
Helpful
1
Replies

clear command history

adam.strobel
Level 1
Level 1

How can I clear or reset the Cisco command line history?

1 Reply 1

Richard Burts
Hall of Fame
Hall of Fame

Adam

You can clear the command history buffer with an exec command. The history buffer size defaults to 10 but you can control the size. If you want to change the size permanently you use a command in line configuration mode: history size and if you want to change it only for your session you use this command in exec mode: term history size .

So if you want to clear or reset the history buffer I would do this:

term history size 0 (which empties the buffer)

term history size 10 (or whatever value it had been set to).

I tested it and it worked very well for me.

HTH

Rick

HTH

Rick