1. 기 능
 현재 설정되어 있는 호스트의 이름을 표시하거나 변경한다.
2. 문 법
 # hostname [ 호스트명 ] 인자 값 없이 사용된다면 현재 설정되어 있는 호스트명을 보여준다. 리눅스는 기본적으로 프롬프트에서 호스트의 이름을 보여줄 것이다. 혹은 사용자가 프롬프트에 호스트명이 나타나도록 할 수도 있다. 인수로서 새로운 호스트명을 지정한다면 새로 지정된 이름으로 호스트명을 바꾼다. 하지만 이런 작업은 슈퍼 유저만이 할 수 있다.
3. 옵 션
 -i : hostname에 대한 ip address를 보여준다.
4. 사용방법 및 정보

[root@sense ~]# hostname sense [root@sense ~]# hostname example.com [root@sense ~]# hostname example.com [root@sense ~]# hostname _i 192.168.1.20 | |