Computer Name

computername

What’s in a name? Well, let’s see:

Mac-mini:~ user1$ echo $PS1
\h:\W \u\$
Mac-mini:~ user1$ export PS1="[\H] "
[Mac-mini.local] scutil --get ComputerName
Mac mini
[Mac-mini.local] scutil --get LocalHostName
Mac-mini
[Mac-mini.local] scutil --get HostName
HostName: not set
[Mac-mini.local] hostname
Mac-mini.local

By the way, do you know what happens to your Time Machine if you change your hostname?

Leave a Reply

Your email address will not be published. Required fields are marked *