IT기술/Linux 계열
[Linux] 리눅스 hostname 변경
Travelo
2022. 7. 20. 10:00
728x90
반응형
#관리 #리눅스 #명령어 #변경 #설정 #쉘 #우분투 #이름 #출력 #호스트 #manage #linux #command #change #set #shell #ubuntu #name #print #host
Hostname 변경
user@ubuntu:~$ hostnamectl set-hostname test1-1
==== AUTHENTICATING FOR org.freedesktop.hostname1.set-static-hostname ===
Authentication is required to set the statically configured local host name, as well as the pretty host name.
Authenticating as: user,,, (user)
Password:
==== AUTHENTICATION COMPLETE ===
hostname을 변경 후에 서비스 재기동 (reboot) 하면 변경된 hostname이 반영된다.
반응형
hostname 출력하여 변경 확인 하기
user@ubuntu:~$ hostname
test1-1
728x90
반응형