Hostname 확인 방법 (3가지)
linux-k6k1:~ # hostname
linux-k6k1
linux-k6k1:~ # hostnamectl
Static hostname: linux-k6k1
Icon name: computer-vm
Chassis: vm
Machine ID: 1dec0ea9fa9f49aa910a0f6d44dd0d9c
Boot ID: e043107e53a644e2aecf506f1405637b
Virtualization: vmware
Operating System: openSUSE Leap 15.1
CPE OS Name: cpe:/o:opensuse:leap:15.1
Kernel: Linux 4.12.14-lp151.28.36-default
Architecture: x86-64
linux-k6k1:~ # cat /etc/hostname
linux-k6k1
Hostname 설정
linux-k6k1:~ # hostnamectl set-hostname hanadb
변경된 Hostname 확인
linux-k6k1:~ # hostname
hanadb
linux-k6k1:~ # hostnamectl
Static hostname: hanadb
Icon name: computer-vm
Chassis: vm
Machine ID: 1dec0ea9fa9f49aa910a0f6d44dd0d9c
Boot ID: e043107e53a644e2aecf506f1405637b
Virtualization: vmware
Operating System: openSUSE Leap 15.1
CPE OS Name: cpe:/o:opensuse:leap:15.1
Kernel: Linux 4.12.14-lp151.28.36-default
Architecture: x86-64
linux-k6k1:~ # cat /etc/hostname
hanadb
참고자료:
https://www.cyberciti.biz/faq/opensuse-linux-change-hostname-computer-name-command/
'Linux' 카테고리의 다른 글
Xming(X Window) 설치 및 Putty 연동 (Step by Step) (1) | 2020.01.15 |
---|---|
SuSE 네트워크 설정 (NetworkManager vs Wicked) (0) | 2020.01.13 |
openSUSE SSH 활성화 방법 (Step by Step) (0) | 2020.01.12 |
CentOS7 Timezone 설정 (timedatectl) (Step by Step) (0) | 2019.11.15 |
리눅스 NFS 서버/클라이언트 설정 (Step by Step) (0) | 2019.11.14 |