0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

hostnamectl - Control the system hostname

Last updated at Posted at 2025-05-15
sudo hostnamectl set-hostname new-hostname
hostnamectl

 Static hostname: ...
       Icon name: computer-server
         Chassis: server
      Machine ID: 002f78fbb8ff4ec48632c32b9675f4ea
         Boot ID: 469c16a33ae24f92bb7e1bc3c9b95eca
Operating System: Ubuntu 24.04.2 LTS
          Kernel: Linux 6.8.0-59-generic
    Architecture: x86-64
 Hardware Vendor: Supermicro
  Hardware Model: Super Server
Firmware Version: 3.4
   Firmware Date: Thu 2025-02-13
    Firmware Age: 2month 4w 2d

Static hostname: ...
       Icon name: computer-vm
         Chassis: vm
      Machine ID: 9f25fa7ef5d05a68de9ce9f576ff50e1
         Boot ID: dbe2aed52a3b4b1ba00a61c8815311ca
  Virtualization: kvm
Operating System: Ubuntu 22.04.4 LTS
          Kernel: Linux 5.15.0-113-generic
    Architecture: x86-64
 Hardware Vendor: Red H

Static hostname: ...
       Icon name: computer-vm
         Chassis: vm
      Machine ID: be6673b1511e408b949d2ee087024edd
         Boot ID: 95c93778a221446fb8e2850d0256aff0
  Virtualization: kvm
Operating System: Ubuntu 22.04 LTS
          Kernel: Linux 5.15.0-130-generic
    Architecture: x86-64
 Hardware Vendor: Tencent Cloud
  Hardware Model: CVM

Static hostname: ...
       Icon name: computer-vm
         Chassis: vm
      Machine ID: c9442a5c7f1d4a4aaf3b7443e5b1b955
         Boot ID: 91dc7b0696974cf599acfd8f4b1eeba0
  Virtualization: kvm
Operating System: Ubuntu 24.04.2 LTS
          Kernel: Linux 6.8.0-57-generic
    Architecture: x86-64
 Hardware Vendor: Alibaba Cloud
  Hardware Model: Alibaba Cloud ECS
Firmware Version: 0.0.0
   Firmware Date: Fri 2015-02-06
    Firmware Age: 10y 3month 1w 4d

Static hostname: ...
       Icon name: computer-server
         Chassis: server
      Machine ID: 9cf73573d23b42efb035b28006b9e4da
         Boot ID: 31bb18e2d0554d52b610f517744a5307
Operating System: Ubuntu 24.04.1 LTS
          Kernel: Linux 6.8.0-50-generic
    Architecture: x86-64
 Hardware Vendor: Supermicro
  Hardware Model: AS -2124BT-HTR
Firmware Version: 2.5
   Firmware Date: Fri 2022-09-23
    Firmware Age: 2y 8month 4d
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?