![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Set or print the name of the current host system
hostname [-s] [name_of_host]
Neutrino
When the system starts, it initializes the hostname. As superuser, you can use the hostname utility to change the hostname.
Without a name_of_host argument, hostname prints the name of the current host.
![]()  | 
This utility sets or gets the value of the _CS_HOSTNAME configuration string, not that of the HOSTNAME environment variable. | 
gethostname() in the Library Reference
![]()  | 
![]()  | 
![]()  | 
![]()  |