[SOLVED] How can I delete past commands

mehmethanifi

Well-Known Member
Dec 15, 2016
60
4
48
38
I use the history -r and history -c commands to delete the history commands.
When I do history afterwards, the commands seem to have been deleted.
But when I enter the cls screen later and say history, it lists the last 500 commands for me.

is there any way to erase the history completely?

Thank you...
 
hi,

is there any way to erase the history completely?

this depends on the shell you're using -- if you're using the default bash:
Code:
echo "" > ~/.bash_history ; history -c ; exit

and when you login again and press up arrow or check history it should be cleaned.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!