Common operations in Linux

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

Reference link

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325219428&siteId=291194637