≡ Menu

clear command hisotry

How to delete a single command from history on a Linux, OS X and Unix Bash shell

I'm working in Ubuntu bash terminal application and remotely on a RHEL server in cloud platform. I typed the wrong and dangerous command. I no longer wish to remember dangerous command in the history file. How can I remove or delete a single command from bash history file?
[click to continue…]

Clear Linux / UNIX BASH Shell Command Line Cache / History

Q. I just noticed faq about clearing dns cache and there are lots of commands stored in my cache. Can you tell me the command to clear out my command history or cache from a shell prompt?
[click to continue…]