Related questions
How to delete history of last 10 commands in shell?
Commands follows
511 clear
512 history
513 history -d 505
514 history
515 history -d 507 510 513
516 history
517 history -d 509
518 history
519 history -d 511
520 history
I can delete single one by history -d 511, but how to delete last 10 commands and in between 10 commands history using single command in shell?
…
Delete terminal history in Linux
When you use the up key in a Linux terminal, you can use previous commands again. Great feature. However, I started logging mysql into mysql with the sensitive details in the command.
How can I delete that history?
Run text file as commands in Bash
If I have a text file with a separate command on each line how would I make terminal run each line as a command? I just don't want to have to copy and paste 1 line at a time. It doesn't …