Creativebits.org

an All Creative World site
Ivan's picture

Personalize your terminal greeting

Want to be über cool? You can have a personalized greeting for your terminal sessions.

    personalized Terminal greeting
  1. Open Terminal and get root access by typing in:
    su
  2. Enter your password.
  3. Now you will open a Terminal word processor to modify the default greeting:
    pico /etc/motd
  4. Delete the default and type in your message. It can be several lines. Even an ASCII art.
  5. Press CTRL-X, than "Y" and enter to quit and save.
  6. Press Apple (or otherwise known as Commmand)-N to open a new window and see the result of your hack.

If you are regular reader you already know how to manipulate your images in Terminal and how to browse the net using links. Soon you will officially graduate as a certified OS X geek.

Commenting on this Blog entry is closed.

Michael's picture

Hm, I never considered posting something about this. I sought out the MOTD a couple weeks ago to change mine to 'Welcome to Michael's MotherF***ing Macintosh. Kthx have fun.'

Ivan's picture

what did that poor Mac did to you to call it names? :)

you're certainly geeker than me, 'cos I need an acronym finder to decipher your post. ;)

Anonymous's picture

Some more info from a UNIX geek,

If you want to personalize 'your' greeting, instead of what everybody sees, you should modify your .login file (which can do a lot of other things besides greet you). This has the added benefit of not requiring you to use su because it only affects you.

The easiest way to add a statement like Hi Bob! every time you login is to use the echo command. For example, I would add this line into my .login file:

echo Hi Bob!

And I would see that message every time I logged in. If you don't see a .login file in your home directory, you can create it (don't forget the . or it won't work). For more information on other things you can do to customize Terminal and TCSH (OS X's default 'shell') you can type man tcsh or buy the book on Customizing CSH/TCSH from O'Reilly.

~OnALark

Creativebits is a blog about creativity, design and Macs. We also have a critique section where you can post your work to get opinions and a forum to discuss any design related topics.

Recommend us on Google

Latest critique

Do you need a great new logo?

If you need a logo for your company or product you can get it done with us.
In our logo store you can pick from over 28,000 pre-made logos that will be customized to your name for free or you can post a contest for us for just $250 and our designers from all over the world will submit dozens of logo design suggestions to your specific needs.

Marketplace