hostnamectl //查看当前计算机名hostnamectl set-hostname NEW //设置新计算机名,重启后生效。
上一篇:CentOS查找文件内容命令
下一篇:CentOS查看端口使用情况