Set Hostname2018/04/27 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if rebooting, it will be back). |
# change hostname root@ubuntu:~# hostname dlp root@ubuntu:~# dlp # just changed |
[2] | Change hostname permanently. |
root@ubuntu:~#
hostnamectl set-hostname dlp # show settings root@ubuntu:~# Static hostname: dlp.srv.world Icon name: computer-vm Chassis: vm Machine ID: a43e325510b847a9a01fb91918762b5d Boot ID: a37695be64a243748f4d5ffdab64d89c Virtualization: kvm Operating System: Ubuntu 18.04 LTS Kernel: Linux 4.15.0-20-generic Architecture: x86-64 |
Sponsored Link |