You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

null at terminal

I use bash heavily daily and recently instead of getting my computer name at the bash prompt, I get a (null).Any ideas anyone?

Mac Pro, Mac OS X (10.7.2)

Posted on Oct 20, 2011 1:33 AM

Reply
19 replies

May 30, 2013 1:15 PM in response to obiesie

For me the above solutions didn't work, it seemed my computer name was too long when registering with the Sky router.


To fix it I changed my Mac computer name:


1. Quit terminal

2. Turn wifi off

2. System Preferences -> Sharing -> edited computer name to a shorter number of chars

3. Turn wifi on

4. Open terminal and fingers crossed you should see your computer name

null at terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.