|/
|\ISS               Tidbits  Posts  Answers  Install  Wiki  Contact  Donate  GitHub


Hostname
________________________________________________________________________________

+----------------------------------------------------------------------------+
|                                                                            |
| Update the /etc/hostname file.                                             |
|                                                                            |
|  $ printf '%s\n' HOSTNAME > /etc/hostname                                  |
|                                                                            |
|                                                                            |
| Update the /etc/hosts file.                                                |
|                                                                            |
|  1 127.0.0.1  HOSTNAME.localdomain  HOSTNAME                               |
|  2 ::1        HOSTNAME.localdomain  HOSTNAME  ip6-localhost                |
|                                                                            |
+----------------------------------------------------------------------------+



________________________________________________________________________________

Dylan Araps (C) 2019-2021

The registered trademark Linux(R) is used pursuant to a sublicense from the
Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark
on a world­wide basis.