1. Rename the linux machine
sudo vim /etc/hostname
1.1, linux change domain name mapping
sudo vim /etc/hosts
2. Centos/ubuntu shutdown, you can use shutdown --help to see the help document
shutdown -h 0
1. Rename the linux machine
sudo vim /etc/hostname
1.1, linux change domain name mapping
sudo vim /etc/hosts
2. Centos/ubuntu shutdown, you can use shutdown --help to see the help document
shutdown -h 0