Set Hostname2019/01/15 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname. (but if system restarted, it will be back). |
# change hostname localhost:~ # hostname dlp.srv.world localhost:~ # dlp.srv.world # just changed |
[2] | Change hostname permanently. |
localhost:~ #
hostnamectl set-hostname dlp.srv.world # show state localhost:~ # Static hostname: dlp.srv.world Transient hostname: dlp Icon name: computer-vm Chassis: vm Machine ID: 461f05d189b247a2896c408d3c775f61 Boot ID: 0e9f9eb8ad0e4df1a4e74510636662fd Virtualization: kvm Operating System: SUSE Linux Enterprise Server 15 CPE OS Name: cpe:/o:suse:sles:15 Kernel: Linux 4.12.14-25.25-default Architecture: x86-64 |