Terminal session - change in computer name

#1
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.
 

Cheryl

Rosie Moderator
Staff member
Mod
#2
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
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?
 

Cheryl

Rosie Moderator
Staff member
Mod
#4
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.
 
Top