Linux系统的主机名

查询主机名

  1. hostname
  2. hostnamectl

修改主机名

1 hostnamectl set-hostname <newhostname>