Sponsors

Apple Store

Visit the official Apple Store to buy a Mac online. Free shipping!



Editors' Picks


Comments

Contact Us

Search

Top Posts

Categories

Recent Posts

Our Feeds


Change the Mac OS X Terminal’s Message of the Day

Whenever you launch the Terminal in Mac OS X, you get a little message: “Welcome to Darwin!” - well, after you’ve seen it a few hundred times you might be sick of it, or perhaps you’d prefer something more useful to yourself and other computer users. There is no rocket science with this at all, its called a Message of the Day and it’s a simple text file located at /etc/motd. We will show you how to change it to whatever you want, easily.


Launch the Terminal and type:
$ cat /etc/motd
Unless you have already customized it, “Welcome to Darwin!” will be what appears. But we don’t want that anymore, so here’s how to turn it into whatever you want.

Type the following:
$ nano /etc/motd
nano is nothing more than a command line text editor, and works just like one. Line over and delete the text and type whatever you want in its place.

To save you’ll hit control-O, and then hit return. That’s it. Now when you launch the Terminal you’ll be greeted with your new message.
Hello from OS X Daily!
Mac~$

Note: It has come to our attention that some users will be required to run nano as root, via the sudo command. Using the sudo command will prompt you for the administrators password. The new syntax would be: $ sudo nano /etc/motd



Social bookmarks:


Comments:

Comments: 8

Comment from anon
Time: January 30, 2007, 4:06 pm

another great tip!

Comment from Denver
Time: January 30, 2007, 8:51 pm

Hah…it’s great…i changed it to “don’t terminate my terminal”….

Comment from Mario
Time: January 31, 2007, 1:45 am

It didn’t work for me. I get the message “Could not open file for writing: Permission denied”. Do I have to be logged in as root? I have admin privileges with my regular login.

Comment from IvanTheTerrible
Time: January 31, 2007, 1:52 am

Mario,

I don’t think you’re alone. Try adding the ’sudo’ command to the sequence in front of nano. This would make the new command be:

sudo nano /etc/motd

It will prompt you for the administrator password, which allows you to edit the file by running nano as root. Hope that helps you and others.

Also, you can quit nano by hitting control-X

Comment from Mario
Time: February 1, 2007, 12:03 am

Thanks, Ivan. I suspected I needed to type sudo before the command, but I wasn’t sure.

Comment from vlad
Time: February 7, 2007, 11:05 pm

is there a way to get rid of the “last login” message as well?

Comment from Joel
Time: February 19, 2007, 5:34 am

hi, could any one tell me What “Sudo nano” means?
Thanks

Comment from Tipster
Time: February 21, 2007, 11:45 am

Joel,

’sudo nano’ is a command that runs the nano text editor as the super user root (or system administrator), thus allowing you to edit the /etc/motd file

Write a comment





January 30th, 2007