[H-GEN] Useful not so obvious tips

Scott Burns sburns at ihug.com.au
Mon Oct 25 07:37:21 EDT 2004


Anthony Irwin wrote:
 > [ Humbug *General* list - semi-serious discussions about Humbug and     ]
 > [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
 >
 >
 >
 > -* When typing a password and you know you typed something wrong you can
 > press ctrl + u to clear the password.
 >
 >

If you use bash, export HISTCONTROL=ignoreboth

This means you can repeat commands (like lpstat -t) over and over, and
so long as you type no other commands in between it will only appear
once in your history.

It also means any command starting with a space will not be saved in
your history file.  This brings us on to trick #2.  When you decide on a
password, add a space to the start.  If you accidentally type it in as a
command (because you typed su- rather than su -, for instance) it will
not be saved to your history.

On one of the servers at work my bash prompt turns red when the load
breaks 1.5, but it's a bit icky and I believe covered in the bash HOWTO
anyway.

Scott




More information about the General mailing list