Usually all the commands a user uses in a session will be stored in .bash_history file under users home directory. It's useful for reference in future in case you need to go through it.
what if you it includes passwords, presharedkeys or any keys ? Not secured isn't it. So it would be help ful if there is a chance to disable history temporarily for session. we can do it using unset HISTFILE
Let's how it works.
Use the above command after logging in.
unset HISTFILE
If end this session, everything will be same and history will be saved. Which means it works for session.
gil ...
what if you it includes passwords, presharedkeys or any keys ? Not secured isn't it. So it would be help ful if there is a chance to disable history temporarily for session. we can do it using unset HISTFILE
Let's how it works.
Use the above command after logging in.
unset HISTFILE
If end this session, everything will be same and history will be saved. Which means it works for session.
gil ...
0 Comments