hostname – позволяет узнать текущее имя хоста
redkin.p@govnoserver:~$ hostnamectl Static hostname: govnoserver Icon name: computer-vm Chassis: vm Boot ID: e965d0a9925e44a8af55557b58842542 Operating System: Ubuntu 14.04.3 LTS Kernel: Linux 3.13.0-65-generic Architecture: x86_64 [user1@host1 ~]$ hostnamectl Static hostname: host1.example.com
Читать дальше
