Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
28
rated 0 times [  28] [ 0]  / answers: 1 / hits: 67863  / 2 Years ago, sun, march 6, 2022, 5:14:45

I would like to change my "Device name" as shown in the settings panel. How do I do this?



enter image description here


More From » system-info

 Answers
7

Execute the following command using a terminal:



sudo sed -i 's/present-host-name/new-host-name/' /etc/hosts
sudo sed -i 's/present-host-name/new-host-name/' /etc/hostname


You can check your present-host-name by cat /etc/hostname or hostname.



Then reboot the computer, to see the changes.


[#37095] Monday, March 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nstitutencert

Total Points: 171
Total Questions: 126
Total Answers: 124

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
;