msgbartop
I will happily conduct a FREE basic web security scan for any genuine organization interested in my services to point out whether or not I can find vulnerabilities in your application. Just contact me.
Need a PHP Programmer, PHP staff or project manager? Contact me now.
msgbarbottom

04 Mar 09 Linux Command History

By default your history is stored under bash for 500 commands. You can view your history by issuing the command:

history

This is one good reason why you should not enter passwords as part of a command line where possible. i.e. use mysql -u root -p and then enter the password when prompted by the mysql command, rather than using mysql -u root –password=secretpassword

On login you can use unset HISTFILE which will cease logging to your history file.

You could also use rm -f ~/.bash_history; ln -s /dev/null ~/.bash_history

This will remove your bash history file, then link a file of the same name to /dev/null which is where your history logs will now end up!

Tags: , , , , ,



Leave a Comment

You must be logged in to post a comment.