Results 1 to 7 of 7

Thread: Terminal 101-1

  1. #1

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,534
    Specs:
    21in. iMac 10.11 --- HP win 10
    Terminal 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
    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 Attached Images
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  2. #2

    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Fort Worth, Texas
    Posts
    48,528
    Specs:
    Late 2013 27" iMac, iPad 3, iPhone 6s+, iPhone 6+, 3 iPods, El Capitan
    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.

  3. #3

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,534
    Specs:
    21in. iMac 10.11 --- HP win 10
    Sounds like an idea. Was unsure whether it would be well received at all so thought I would put out a feeler.
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  4. #4

    MacInWin's Avatar
    Member Since
    Jul 07, 2008
    Location
    Winchester, VA
    Posts
    5,880
    Specs:
    2015 rMBP, 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.

  5. #5

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,534
    Specs:
    21in. iMac 10.11 --- HP win 10
    Guess I had my head up my ...
    Thanks, fixed it!
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  6. #6

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

  7. #7

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,534
    Specs:
    21in. iMac 10.11 --- HP win 10
    Filling out the form now.
    Delusions are often functional. A motherís opinions about her childrenís beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Permissions 101
    By Dogbreath in forum OS X - Operating System
    Replies: 5
    Last Post: 05-10-2013, 01:59 PM
  2. Burning 101
    By JWBear in forum Switcher Hangout
    Replies: 4
    Last Post: 03-14-2008, 07:48 AM
  3. 101 uses for your iSight
    By prettyinpunk in forum Schweb's Lounge
    Replies: 11
    Last Post: 01-03-2008, 09:40 AM
  4. Newbie 101
    By Northern Munkee in forum Switcher Hangout
    Replies: 2
    Last Post: 04-16-2007, 05:28 PM
  5. noob Q's 101?
    By mystro in forum iPod Hardware and Accessories
    Replies: 5
    Last Post: 12-23-2004, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •