Skip to content

主机管理

hostname命令

hostname命令返回当前服务器的主机名。

bash
$ hostname
$ hostname