Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Terminal 101-1
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cradom" data-source="post: 1541038" data-attributes="member: 305283"><p>Welcome to Terminal 101</p><p></p><p>Back in the day (not that long ago), when Terminal was started, a file was read which put a message on the screen.</p><p>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.</p><p>Motd stands for Message Of The Day. Admins used this to send messages to users mainly on text only screens in Unix/Linux etc.</p><p>It was used to state rules for remote login users or notices of maintenance or shutdowns for all users.</p><p>As luck would have I put one in /etc in ML and it still works! So fire up Terminal and follow along.</p><p></p><p>This will work whether you have a motd file or not. Type: sudo nano /etc/motd</p><p>Or you can </p><p>cd /etc</p><p>sudo nano motd</p><p>If the file is there, nano will open it. If not, nano will create it. Use your login password.</p><p>You should see a window like the one below. Type in whatever message you want your Terminal users to see when they log in.</p><p>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.</p><p>Your message will show before the prompt. See second pic.</p><p></p><p>Stay tuned for more Terminal how-to's as I can do them.</p><p></p><p>[ATTACH=full]19570[/ATTACH]</p><p></p><p>[ATTACH=full]19571[/ATTACH]</p></blockquote><p></p>
[QUOTE="cradom, post: 1541038, member: 305283"] 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. [ATTACH=full]19570[/ATTACH] [ATTACH=full]19571[/ATTACH] [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Terminal 101-1
Top