I'm working in Mac OSX, so I guess I'm using bash...?
Sometimes I enter something that I don't want to be remembered in the history. How do I remove it?
If you want to run a command without saving it in history, prepend it with an extra space
For this to work you need either
To make this setting persistent, put it in your
If you've already run the command, and want to remove it from history, first use
to display the list of commands in your history. Find the number next to the one you want to delete and run
|show 2 more comments|