Terminal session - change in computer name

Discussion in 'Unix & X11' started by Code Zealot, Aug 9, 2014.

  1. Code Zealot

    Code Zealot Registered

    Joined:
    Sep 26, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    I have noticed that when I am offline and I launch terminal the command line will be:
    computer name ~ user name

    When I am online the command line is:
    2:~ user name

    Can anyone explain why the computer name changes to " 2: " when I am online?

    I appreciate your help.
     
  2. Cheryl

    Cheryl Rosie Moderator Staff Member Mod

    Joined:
    Dec 26, 2001
    Messages:
    3,910
    Likes Received:
    5
    Trophy Points:
    38
    Gender:
    Female
    Occupation:
    Teacher
    Location:
    Chicago, IL, USA
    You have file sharing turned on. If you check System Preferences>Sharing you will see the Computer’s name listed. File sharing works when you are online. You can turn File Sharing off if you don’t want to share.
     
  3. Code Zealot

    Code Zealot Registered

    Joined:
    Sep 26, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Cheryl, thank you for your reply. I will need to double check but, I believe that sharing is turned off. What would be issue if sharing is turned off?
     
  4. Cheryl

    Cheryl Rosie Moderator Staff Member Mod

    Joined:
    Dec 26, 2001
    Messages:
    3,910
    Likes Received:
    5
    Trophy Points:
    38
    Gender:
    Female
    Occupation:
    Teacher
    Location:
    Chicago, IL, USA
    It could be the name your router or modem assigns to you. That would give you added security rather than showing your computer’s real name.
     

Share This Page