欢迎来到科普经验站!
>
1、直接通过hostname查看当前会话的主机名;
2、通过hostnamectl status可以查看静态主机名;
3、通过/etc/hostname查看主机名,与hostname status 中Static hostname结果一样。
图文推荐
相关文章