This post will show you How to change hostname in Ubuntu Easily.
If you are interested in learning, Request you to go through the below recommended tutorial.
DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
How to change hostname in Ubuntu Easily
Are you looking for changing the hostname in Ubuntu server. So here is the solution to change hostname in ubuntu server.1. vi /etc/hosts
192.168.2.1 hostname.learnitguide.net hostname
Replace "hostname" with your server hostname and also "learnitguide.net" with your domain name.
2. vi /etc/hostname
hostname.learnitguide.net
Replace the content with your hostname and domain name.
After doing the changes, run any of these command or reboot the server for the changes to take effect.
sudo service hostname restartor
cat /etc/hostname > /proc/sys/kernel/hostname
Hope this post helped you to know How to change hostname in Ubuntu Easily.
Related Content on Linux might be useful to you to improve your Linux Skills.
How to Configure IP Address on Ubuntu using Netplan
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
Keep practicing and have fun. Leave your comments if any.
Support Us: Share with your friends and groups.Stay connected with us on social networking sites, Thank you.
0 تعليقات