What's your /etc/motd & .login?

michaelsanford

Translator, Web Developer
What do your /etc/motd message and .login say?

Welcome to Helios;
*AUTHORIZED PERSONNEL ONLY*

Sat Nov 2 14:06:30 EST 2002
2:06PM up 2 days, 4:14, 3 users, load averages: 1.47, 1.09, 1.04
mysqld is alive
Uptime: 187975 Threads: 1 Questions: 26 Slow queries: 0 Opens: 5 Flush tables: 1 Open tables: 0 Queries per second avg: 0.000
No new messages.
No mail for gwailo
[gwailo:~]%
 
Last login: Sat Nov 2 15:10:03 on ttyp3
Raw cod in me towel!
3:11PM up 15 days, 21 hrs, 5 users, load averages: 1.79, 1.16, 0.79
: 0 3:11pm;

"Raw cod in my towel!" is an anagram of "Welcome to Darwin!". Yes, I'm a geek. Before that it was "O me! Land! Row twice.", but the punctuation didn't match. Maybe if I'm bored I'll make one where the capitalization is right too.

The prompt string is the one I put some work into:

set prompt="%{\033]0;%n@%m:%c3\007%}%B: %? %t; %b"

Which is: go up to the title bar (%{\033]0;), print username@hostname:current directory (%n@%m:%c3), then come back down to the main window (\007%}) and print in bold (%B) the exit status of the last command and the time (%? %t). It's between : and ; because that escapes the prompt, so I can copy the entire line to another window and only have the command executed.
 
from one extreme

put this is your .login (have to have dev tools intalled):
find /usr/share/calendar/calendar.* -exec calendar -f {} \;

to another,

type at terminal:
touch ~/.hushlogin


there you go. 2 very dfferent ways to have you terminal greeting you!!:p
 
Back
Top