Systemd 入门教程:命令篇
[root@localhost ~]# hostnamectl
Static hostname: localhost.localdomain
Icon name: computer-server
Chassis: server
Machine ID: eedb9999e0a347d5804a78aea265417a
Boot ID: c013a8c402ab483caf7bb73ccb013bf4
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-693.el7.x86_64
Architecture: x86-64
http://www.ruanyifeng.com/blog/2016/03/systemd-tutorial-commands.html