subscribe iconSubscribe to this information

hostname command

Purpose

Sets or displays the name of the current host system.

Syntax

hostname [ HostName ]

Description

The hostname command sets or displays the name of the current host system.

Parameters

Hostname Sets the primary name of the host.

Exit Status

See Exit status for Virtual I/O Server commands.

Examples

  1. To set the hostname to rotterdam, type:
    hostname rotterdam

Send feedback | Rate this page

Last updated: Fri, Oct 30, 2009