How to modify the computer name in Linux

  
 

1, modify /etc/sysconfig/networkvi /etc/sysconfig/networkNETWORKING=yesHOSTNAME=carel(carel is the computer name) 2. Modify /etc/hostsvi /etc/hosts# Do not remove the following line, or various programs #那 require network functionality will fail.127.0.0.1 localhost.localdomain localhost192.168.1.120 carel carel (carel is the computer name) 3, restart computer
init 6

Copyright © Windows knowledge All Rights Reserved