Friday, October 6, 2006

Hush Baby

So someone asked on freebsd questions about how to make his login shell stop printing out the fortune. He even went so far as to rename the fortune program! I guess he must have been running a system-wide default .login or .rc file of some sort, but that's a little over the top, don't you think? The easiest way would have been to create his own .login and/or .rc file (.profile and/or .bashrc for bash) and just not call fortune in it. But Norberto pointed out another way, that I hadn't heard of - the .hushlogin file:




$ touch ~/.hushlogin



I had never heard of that, but what it does is to make all login displays not show up. Which is pretty cool, if you ask me. So even the motd won't spoil your pristine login window. Nice. Here's an article on O'Reily about the whole log in procedure, including .hushlogin:



Monitoring Unix Logins


No comments:

Post a Comment