New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Terminal 101-1


Post Reply New Thread Subscribe

 
Thread Tools
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,132
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
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
cd /etc
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.
Attached Images
File Type: jpg craig_—_nano_and_Untitled.jpg (25.0 KB, 13 views)
File Type: jpg craig_—_bash.jpg (55.9 KB, 13 views)

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
chscag

 
chscag's Avatar
 
Member Since: Jan 23, 2008
Location: Fort Worth, Texas
Posts: 39,669
chscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond reputechscag has a reputation beyond repute
Mac Specs: 27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, 3 iPods, OS X Mavericks

chscag is online now
Craig:

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.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,132
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Sounds like an idea. Was unsure whether it would be well received at all so thought I would put out a feeler.

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
MacInWin

 
MacInWin's Avatar
 
Member Since: Jul 07, 2008
Location: Winchester, VA
Posts: 2,339
MacInWin is a splendid one to beholdMacInWin is a splendid one to beholdMacInWin is a splendid one to beholdMacInWin is a splendid one to beholdMacInWin is a splendid one to beholdMacInWin is a splendid one to beholdMacInWin is a splendid one to beholdMacInWin is a splendid one to behold
Mac Specs: 2011 MBP, 2008 iMac, iPhone 5S, iPad mini, 13" MBP and MacMini

MacInWin is offline
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.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,132
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Guess I had my head up my ...
Thanks, fixed it!

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,894
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Quote:
Originally Posted by cradom View Post
Sounds like an idea. Was unsure whether it would be well received at all so thought I would put out a feeler.
Shoot me a PM and we can sort things out. Would love to have a series of Terminal howtos on the blog. I'll be out of town this weekend so we might have to start the process on Monday.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,132
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Filling out the form now.

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks

Post Reply New Thread Subscribe


« Missing iPhotoq | cleanmymac 2 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Automatically save log files of terminal sessions Stubaan OS X - Apps and Games 3 04-02-2013 11:24 AM
Terminal Won't Open icefall5 OS X - Operating System 7 08-25-2010 08:26 AM
C++ in terminal frike OS X - Development and Darwin 2 04-04-2008 10:52 AM
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 10:04 AM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM

All times are GMT -4. The time now is 12:37 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?