- Joined
- Feb 14, 2004
- Messages
- 4,781
- Reaction score
- 166
- Points
- 63
- Location
- Groves, Texas
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.
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.