Neat Terminal Welcome

profx

ill never 4get watsisname
Hey, for those of you that use the terminal every now and again, did you know it is possible to modify the welcome message.

just copy and paste this into a terminal window
find /usr/share/calendar/calendar.* -exec calendar -f {} \;

to edit the Message Of The Day
pico /etc/motd

or if you want to execute a command when a new terminal window is opened type
pico .login
then put what you want. I suggest something like

echo Todays menu:
find /usr/share/calendar/calendar.* -exec calendar -f {} \;
uptime

for to day this is what i get:

Todays Menu:
09/18 Greta Garbo born, 1905
09/18 Jimi Hendrix dies from an overdose, 1970
09/17 Battle of Antietam, 1862
09/18 Frodo and company rescued by Bombadil (LOTR)
09/18 Victory of Uprona in Burundi
09/17 National Heroes Day in Angola
09/18 Independence Day in Chile, Zimbabwe
11:56PM up 14 days, 6:25, 3 users, load averages: 0.57, 0.33, 0.33


fascinating!!

at least its different every day!

how does your terminal welcome you?
 
You can use Fink to install fortune, and then get a fortune cookie for every login. I like the calender one, though. I've never noticed that before.
 
Originally posted by symphonix
You can use Fink to install fortune, and then get a fortune cookie for every login. I like the calender one, though. I've never noticed that before.

For more fun, try 'fortune -o'.
 
I once wrote a program that grabbed the current stock price and calculated the value of my stock options every 15 minutes. I'd display their value every time I logged in.

However, that got depressing so I shut it down. :(

Vanguard
 
Just be warned peoples: fortune -o provides fortunes that are potentially offensive.
Actually, I did snoop around in man fortune and it is pretty neat.
 
this is odd... when I try here's what I get...

['Apollo:~] ryan% find /usr/share/calendar/calendar.* -exec calendar -f {} \;
calendar: execl: /usr/bin/cpp: No such file or directory
 
Back
Top