- Red Hat Enterprise Linux / CentOS
- Hits: 4404
One liner command to insert IP and hostname in /etc/hosts
This a very useful One liner command to insert IP and hostname into /etc/hosts file and is particularly useful when it comes to kickstart scripts wherein you need to have /etc/hosts entry for the newly provisioned VM and get it enrolled to various applications that include Red Hat IDM/ FreeIPA and Puppet to start with.
Add a comment