dufault.info

Ramblings of a phone weenie, Linux sysadmin, and other things geeky

Enable date-stamp in your .bash_history file

While it’s easily cleared by a malicious person, this can easily extend the usefulness of your history file with the information of when you ran that command.
This works in bash v3 and up.
If you’d like to add the timestamping to all users on the machine, the file you’d want to edit is probably /etc/profile.  If [...]

Compiling a Shell Script To Obscure the Source

Well, there’s been a few times that I’ve written a shell script that was really neat.  Something that other people would have paid for a copy of. (I was too lazy to rewrite it in another language.) Up until now, I wasn’t aware you could compile a shell script, in the attempts from keeping people [...]