Ubuntu 18.04
Sponsored Link

Set Hostname
2018/04/27
 
This is the example for setting Hostname of your system.
[1] Change hostname. (but if rebooting, it will be back).
# show current hostname

root@ubuntu:~#
ubuntu
# change hostname

root@ubuntu:~#
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
Matched Content
 
Tweet