리눅스 hostnamectl

Jmnote (토론 | 기여)님의 2017년 12월 3일 (일) 17:56 판 (→‎같이 보기)

1 개요

리눅스 hostnamectl
/usr/bin/hostnamectl
  • "호스트명 컨트롤"
  • 시스템 호스트명을 제어하는 리눅스 명령어
  • 그냥 실행하면 hostnamectl status 와 동일
root@zetawiki:~# hostnamectl
   Static hostname: zetawiki.example.com
         Icon name: computer-vm
           Chassis: vm
           Boot ID: 1e35ac7f92b468035d79a146c8e02bd5
    Virtualization: kvm
  Operating System: Ubuntu 14.04.4 LTS
            Kernel: Linux 3.16.0-30-generic
      Architecture: x86_64
root@zetawiki2:~# hostnamectl
   Static hostname: zetawiki2
         Icon name: computer-vm
           Chassis: vm
        Machine ID: e135ac79f2bd4a6ce80b3dfc57e9adf1
           Boot ID: 579136ac8e024b7d91358fc0246e9ad1
    Virtualization: xen
  Operating System: Ubuntu 16.04.1 LTS
            Kernel: Linux 4.4.0-31-generic
      Architecture: x86-64
[root@zetawiki3 ~]# hostnamectl
   Static hostname: zetawiki3
         Icon name: computer-vm
           Chassis: vm
        Machine ID: a70fb5156e33479291b545992cc396fc
           Boot ID: 3389a054697e42c6ae3bafaebf4b9eea
    Virtualization: vmware
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-327.36.3.el7.x86_64
      Architecture: x86-64

2 명령어

명령어 설명
hostnamectl status 현재 호스트명 설정 조회
hostnamectl set-hostname 호스트명 시스템 호스트명 설정
hostnamectl set-icon-name 아이콘명 호스트 아이콘명 설정
hostnamectl set-chassis 섀시명 호스트명 섀시 유형 설정

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}