sudo hostnamectl set-hostname host01.e-frontier.systems
確認方法
sudo hostnamectl
Static hostname: host01.e-frontier.systems
Icon name: computer-vm
Chassis: vm
Machine ID: fb21880645038de8b81625cdf7f2085d
Boot ID: 4eb515aa9f9d4df589b1e06bbb27b1ca
Virtualization: kvm
Operating System: Ubuntu 22.04.4 LTS
Kernel: Linux 5.15.0-107-generic
Architecture: x86-64