Linux System Administration – Part 2
In this post, we are continuing with the commands that are used for Linux system administration. How to change the hostname 1) [For RedHat and Centos] Using a text editor open the file /etc/sysconfig/network and Modify the HOSTNAME= value to match your server’s new name
1 |
# sudo gedit /etc/sysconfig/network |
Sample entry after editing:
1 2 3 4 |
$ cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=ibmppc1.example.com |
2) Run the below …