Skip to main content
Tweeted twitter.com/StackUnix/status/686591946983391232
Clarify the OS X computer name.
Source Link
Stephen Kitt
  • 481.7k
  • 60
  • 1.2k
  • 1.4k

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck.

I am trying to find an equivalent of OSX's scutil --get ComputerName on Linux systems. On Mac OS X, the computer name is used as a human-readable identifier for the computer; it's shown in various management screens (e.g. on inventory management, Bonjour-based remote access, ...) and serves as the default hostname (after filtering to handle spaces etc.).

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck.

I am trying to find an equivalent of OSX's scutil --get ComputerName on Linux systems.

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck.

I am trying to find an equivalent of OSX's scutil --get ComputerName on Linux systems. On Mac OS X, the computer name is used as a human-readable identifier for the computer; it's shown in various management screens (e.g. on inventory management, Bonjour-based remote access, ...) and serves as the default hostname (after filtering to handle spaces etc.).

Source Link
Jonathan H
  • 2.5k
  • 3
  • 24
  • 29

How to get the computer name (not its hostname)?

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck.

I am trying to find an equivalent of OSX's scutil --get ComputerName on Linux systems.