Set Hostname2016/04/21 |
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 # display settings root@ubuntu:~# Static hostname: dlp Icon name: computer-vm Chassis: vm Machine ID: 4146e8929ffa426ebdac4569cf024113 Boot ID: fb2d71a7d85b44a39a8444a94e510b08 Virtualization: kvm Operating System: Ubuntu 16.04 LTS Kernel: Linux 4.4.0-21-generic Architecture: x86-64 |
Sponsored Link |
|