How to change your hostname
To display your current hostname type this command:
root@bt:~# hostname
Now, to change the default hostname, type the following:
root@bt:~# shinobi
Let's see if it worked, so we need to close the terminal & open a new one:
However, if you reboot the system, this change will be lost. To fix that and make your new hostname permanent, we need to edit the "hostname" file in "etc":
root@bt:~# pico /etc/hostname
All what is left now is to change the default hostname to the one you have just chosen, then press Ctrl+O and press "enter"to save the changes, then Ctrl+x to exit.
Hope you like it :-)
0 commentaires: