How To Change Hostname & Hosts in Kali Linux


When installing kali, you get to choose a hostname, but in case you accepted the default hostname (kali) and later want to change it, here’s a How to guide to change hostname in Kali Linux.

Step 1: edit hostname file

Open hostname file from /etc directory and modify the name in there.
nano /etc/hostname
Save the file.

Step 2: edit hosts file

Open hosts file from /etc directory and modify the name in there.
nano /etc/hosts
Save the file.

Step 3: reboot

Now reboot to reflect your changes
reboot
And you should see the new hostname coming up in terminal (i.e. root@iExplo1t)

anonyme

Tutorials, Networking, Security, Virtualisation, Microsoft, Linux, Android, iOS and Apple, Tech Reviews, Free Ebooks and More!.

sharethis

 

Copyright @ 2024 iExplo1t | Developed by AuresExpress.com