commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Best way I know to get rid of .bash_history and don't allow bash to save the current one on exit
Edit: added ~/ before .bash_history, just in case... ;)
There are 9 alternatives - vote for the best!
this will cause any commands that you have executed in the current shell session to not be written in your bash_history file upon logout
Unsetting HISTFILE avoid getting current session history list saved.
Only from a remote machine:
Only access to the server will be logged, but not the command.
The same way, you can run any command without loggin it to history.
ssh user@localhost will be registered in the history as well, and it's not usable.
If you can do better, submit your command here.
You must be signed in to comment.