HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
Rename a Hostname
- SuperUser (root) privilege is needed
- E.g. hostname from “cbkadal” to “Coba”
hostnamectl set-hostname Coba
hostnamectl
(RESULT)
root@cbkadal:~# hostnamectl set-hostname Coba
root@cbkadal:~# hostnamectl
Static hostname: Coba
Icon name: computer-vm
Chassis: vm
Machine ID: a42f2d0a337a46629ea22087bd3cae63
Boot ID: fae4d3c5d501435aaee43e35c3960b5d
Virtualization: oracle
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-17-amd64
Architecture: x86-64
root@cbkadal:~#
- E.g. hostname from “Coba” back to “cbkadal”
hostnamectl set-hostname cbkadal
hostnamectl
(RESULT)
root@cbkadal:~# hostnamectl set-hostname cbkadal
root@cbkadal:~# hostnamectl
Static hostname: cbkadal
Icon name: computer-vm
Chassis: vm
Machine ID: a42f2d0a337a46629ea22087bd3cae63
Boot ID: fae4d3c5d501435aaee43e35c3960b5d
Virtualization: oracle
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-17-amd64
Architecture: x86-64
root@cbkadal:~#