August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/hostname [name-of-host] Use the hostname command to print the name of the current host, as given before the login prompt. The superuser can set the host name by giving an argument.
The following example uses hostname with no arguments to display the host name.
$ hostname
castle
$ See attributes(5) for descriptions of the following attributes:
| Attribute Type | Attribute Value |
|---|---|
| Availability | SUNWcsu |
uname(1), attributes(5)
Read now
Unlock full access