Terminal history clear

Can anyone please inform me how to clear terminal history ? I mean typed content from terminal. Everytime when I press up arrow in terminal I get the previous command history. I need to clear them for security purpose. Any help regarding this will be highly appreciable.

Regards

Anyone got a current idea for this?
There doesn’t seem to be a way to clear this. Rebooting, or even deleting the admin user and creating a new user named “admin” preserves the history…

So ehm any progress on this now when we have RouterOS 7.x?

Doing a:


/system reset-configuration keep-users=yes no-defaults=yes skip-backup=yes run-after-reset=flash/custom.rsc

Doesnt seem to erase the terminal history at all which remains as others have noted years ago.

On a regular linux system you can do something like:


history -c && exit

to have the terminal history to be cleared but that wont work on RouterOS.

And because of my post I finally find out how to do it:


/console/clear-history
1 Like