linux 查看hostname
- IT科技
- 关注:1.3W次
1、直接通过hostname查看当前会话的主机名;
2、通过hostnamectl status可以查看静态主机名;
3、通过/etc/hostname查看主机名,与hostname status 中Static hostname结果一样。
- 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/7wjx8n.html
1、直接通过hostname查看当前会话的主机名;
2、通过hostnamectl status可以查看静态主机名;
3、通过/etc/hostname查看主机名,与hostname status 中Static hostname结果一样。