Changing the Terminal Greeting
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
For some reason, mine says 'You have Mail'
I want to change that, and I'm new to Command-Line interfaces, so I looked up a tutorial online. The tutorial told me to open up the MOTD file in the /etc/ directory and edit it with NANO. But MOTD cannot be found in the /etc/ directory.
I want to learn more about using the Terminal, so where is the MOTD file?
12 replies
Sign in or join Beachball Help to reply.
- 0
baltwo ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I have no idea why yours says that. AFAIK, it only reads what's in motd, but that file's been gone since Leopard shipped. All I can suggest is to create a new one and store it into /private/etc/. These should do it for you. Just enter the commands, one at a time, and hit the return key:
*cd /private/etc/*
*sudo nano motd*enter your admin password, carefully since nothing shows up on the screen, and hit the return key
Type in your new greeting, CONTROL+O, hit the return key, CONTROL+X, and the motd file is created in the appropriate location. Quit Terminal and relaunch. You should now see the greeting.
I use *+Welcome to baltwo's World!+*
and the Terminal window now opens with:
+Last login: Wed Oct 31 21:22:41 on ttys000+
+Welcome to baltwo's World!+
+localhost:~ baltwo$+ - 0
orangekay ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
baltwo wrote:
I have no idea why yours says that.It says that because he has mail--most likely output from a cron job.
You can read it with the
mail command. - 0
baltwo ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Ah! Thanks for chiming in. It's been a long time since I enabled sendmail to send me root's daily maintenance reports and I forgot that's what pops up when mail arrives. IIRC, sendmail and that option went away when Tiger shipped and I never pursued doing it with postfix, although, I vaguely remember rerouting root's mail to me, I've never gotten any mail via that route.
- 0
orangekay ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I don't think you need to enable sendmail for local delivery. I never have.
- 0
baltwo ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Well, that's how I did it in the Jaguar/Panther days. The steps were provided in a Using the Terminal tutorial put out by O'Reilly's MacDevCenter. It was what I used to get familiar with Terminal and to refresh myself on using Unix and the CLI. I have no reason to muck with that any longer, so I've let it go.
- 0
baltwo ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Follow-up. I have set the OS so that I'll receive root's mail; however, nothing sends root mail. As I recall, the tutorial I mentioned described how to direct the maintenance script outputs so as to include sending the report to root. Then, the mail command would read that mail.
- 0
CYoungdale3 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Ok, thanks everyone, you all have been a big help.
- 0
baltwo ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the feedback. However, you didn't describe if you successfully changed the greeting and exactly what you did. That information will help others having your issue.
- 0
CYoungdale3 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Oh sorry, yes I did successfully change my Terminal greeting. Thank you very much.
Now I'm off to learn more about using the Terminal.
- 0
- 0
CYoungdale3 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I created an MOTD file in the /etc/ directory and typed the text right into NANO. Saved the file and now it says, "Welcome to Darwin!" on startup.
And I did have mail, something about some patch attempts that went wrong with Norton AntiVirus, but I fixed them all.
- 0
baltwo ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the clarifications. Good computing.