Thread: Terminal 101-1
10-03-2013, 07:49 PM #1Terminal 101-1
Welcome to Terminal 101
Back in the day (not that long ago), when Terminal was started, a file was read which put a message on the screen.
I don't know when Apple did away with it but Mountain Lion doesn't have it. IT is a file in /etc called motd.
Motd stands for Message Of The Day. Admins used this to send messages to users mainly on text only screens in Unix/Linux etc.
It was used to state rules for remote login users or notices of maintenance or shutdowns for all users.
As luck would have I put one in /etc in ML and it still works! So fire up Terminal and follow along.
This will work whether you have a motd file or not. Type: sudo nano /etc/motd
Or you can
sudo nano motd
If the file is there, nano will open it. If not, nano will create it. Use your login password.
You should see a window like the one below. Type in whatever message you want your Terminal users to see when they log in.
Now type control-o to save the file. Control-x to quit nano. You're done! It's that easy. Quit Terminal and restart it.
Your message will show before the prompt. See second pic.
Stay tuned for more Terminal how-to's as I can do them.Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
10-03-2013, 07:56 PM #2
- Member Since
- Jan 23, 2008
- Fort Worth, Texas
- Late 2013 27" iMac, iPad 3, iPhone 6s+, iPhone 6+, 3 iPods, El Capitan
You need to get together with Van and inquire as to whether he would like to see you write something up in blog format rather than put it here in "Apps......" where it will soon be buried and forgotten.
I personally like the idea of teaching terminal to our users who are interested.
10-03-2013, 07:59 PM #3
Sounds like an idea. Was unsure whether it would be well received at all so thought I would put out a feeler.Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
10-03-2013, 08:44 PM #4
- Member Since
- Jul 07, 2008
- Winchester, VA
- 2011 MBP, 2008 iMac, iPhone 6, iPad mini, 13" MBP, AppleTV and two MacMinis
Worked like a champ, Craig. One tiny point for any terminal rookies, before you do the "sudo nano motd" command "cd /etc" to get into the /etc directory. Otherwise terminal opens in your home directory, so motd will be created there. If that happens you can "mv motd /etc/motd" to get it to the /etc directory.- Jake
Writing a quality post
10-03-2013, 08:46 PM #5
Guess I had my head up my ...
Thanks, fixed it!Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
10-03-2013, 08:56 PM #6
10-03-2013, 08:56 PM #7
Filling out the form now.Always listen to experts. They’ll tell you what can’t be done and why. Then do it!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Dogbreath in forum OS X - Operating SystemReplies: 5Last Post: 05-10-2013, 01:59 PM
By JWBear in forum Switcher HangoutReplies: 4Last Post: 03-14-2008, 07:48 AM
By prettyinpunk in forum Schweb's LoungeReplies: 11Last Post: 01-03-2008, 09:40 AM
By Northern Munkee in forum Switcher HangoutReplies: 2Last Post: 04-16-2007, 05:28 PM
By mystro in forum iPod Hardware and AccessoriesReplies: 5Last Post: 12-23-2004, 05:46 PM