hostname 확인

  • 터미널에서 hostname을 확인하는 방법
>>> hostname
  • vi 에디터로 hostname이 적힌 파일을 열어볼 수 있음
>>> vi /etc/hostname

hostname 변경

  • 다음의 명령을 통해 hostnamenew_host_name으로 변경 가능하고 재부팅하면 적용이 됨
>>> hostnamectl set-hostname new_host_name

Go back to the List of Studies