Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

clear command history

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

1 REPLY
Hall of Fame Super Silver

Re: clear command history

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

9460
Views
10
Helpful
1
Replies
CreatePlease login to create content