How to change linux mint PC Host Name

Posted on March 20, 2022

Open a terminal and enter sudo -s to enable the root privileges.

user@user-pc:~$ sudo -s

Next, edit the hostname using the below command

root@user-pc:~$ nano /etc/hostname

It will show the existing hostname (PC name). Now you can edit it and save using ctrl + x command.

Once restart your PC your hostname (PC name) will update automatically.

to join this conversation on Samprix.Already have an account? Sign in to comment
Sponsors