Changing the Unix hostname

A Unix machine’s hostname appears at the shell prompt, and is also the name used many of the networking pro-grams to identify the machine.

  • To see what the hostname is set to:
    • $ hostname
  • And to change it:
    • $ hostname new_name_here

Leave a Reply