Ubuntu 14.04
Sponsored Link

Set Hostname2015/10/25

 
This is the example for setting Hostname of your system.
[1] Change hostname with a commnad (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
# display settings

root@ubuntu:~#
   Static hostname: dlp
         Icon name: computer-vm
           Chassis: vm
           Boot ID: 4c2bfd4980a84fef8882b5a5939e5624
    Virtualization: kvm
  Operating System: Ubuntu 14.04.3 LTS
            Kernel: Linux 3.13.0-66-generic
      Architecture: x86_64
Matched Content