- scutil --get ComputerName
-
Für Macs: scutil …
Show Plain Text
Supported preferences include:
ComputerName: The user-friendly name for the system.
LocalHostName: The local (Bonjour) host name.
HostName: The name associated with hostname(1) and gethostname(3).
-