CentOS command learning (regularly updated)

Shutdown

halt    //立刻关机
poweroff    //立刻关机
shutdown -h now    //立刻关机(root用户使用)
shutdon -h 10    //10分钟后关机

Restart

reboot    //重启
shutdown -r now    //立刻重启
shutdown -r 10    //10分钟后重启
shutdown -r 20:35    //在晚上8点35分重启

shutdown -c You can cancel the restart or shutdown command (under the shutdown command only operation)

View version

uname -a    //查看内核版本
cat /proc/version    //查看内核版本
cat /etc/redhat-release    //查看发行版本

View / Modify hostname

hostname    //查看主机名
sudo hostname 新主机名    //修改主机名

Guess you like

Origin www.cnblogs.com/anycall/p/11612656.html