tldr/pages/osx/hostname.md

225 B

hostname

Show or set the system's host name. More information: https://www.tutorialspoint.com/unix_commands/hostname.htm.

  • Show current host name:

hostname

  • Set current host name:

hostname {{new_hostname}}