- Press CtrlAltt on keyboard to open the terminal. When it opens, run the below command:
sudo hostname NEW_NAME_HERE
- To change the name permanently, run command to edit the host files:
sudo gedit /etc/hostnameandsudo gedit /etc/hostsor you can open terminal and press sudo nautilus and enter after that go to computer etc hostname their edit the file as you want then save it
sudo vi /etc/hostname and sudo vi /etc/hosts and edit them one by one. In both files, change the name to what you want and save them.Finally, restart your computer to apply the changes.