MacOS-Hostname: Difference between revisions

From SWCP Support Wiki
Jump to navigationJump to search
Created page with 'You can change your hostname from a terminal window. You'll need to have access to an adminisrator account. Run the following command: sudo scutil --set HostName newname.local...'
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
Example sequence:
Example sequence:
    
    
   Macintosh:~ jai$ hostname
   '''Macintosh:~ jai$''' hostname
   Macintosh.local
   ''Macintosh.local''
   Macintosh:~ jamii$ sudo scutil --set HostName lily.local
   '''Macintosh:~ jamii$''' sudo scutil --set HostName lily.local
   Password:
   Password:
   Macintosh:~ jai$ hostname
   '''Macintosh:~ jai$''' hostname
   lily.local
   ''lily.local''
 
Note: Your prompt won't change until you create a new tab or window.

Latest revision as of 12:24, 14 July 2010

You can change your hostname from a terminal window. You'll need to have access to an adminisrator account. Run the following command:

 sudo scutil --set HostName newname.local

Example sequence:

 Macintosh:~ jai$ hostname
 Macintosh.local
 Macintosh:~ jamii$ sudo scutil --set HostName lily.local
 Password:
 Macintosh:~ jai$ hostname
 lily.local

Note: Your prompt won't change until you create a new tab or window.