Changing Hostname in Kali Linux

 

Step1: Change in hostname file

Change hostname file using nano or any other text editor 

Path: /etc/hostname

Command: sudo nano /etc/hostname

Change the name from Kali anyname Save the file




Step2: Edit Hosts File

Change Name in Hosts file 

Path: /etc/hosts

Command: sudo nano /etc/hosts

Change kali to the same name as mentioned in hostname file

Remember all the changes can be done only in sudo 

Now reboot the system to save the changes After Reboot check terminal



Comments

Popular posts from this blog

What is cybersecurity?

Learn Metasploit

Followers