|
Network |
|
The hostname command shows or sets the system's host name.
hostname returns the system's hostname :
localhost.localdomain is the string returned on a system that
was newly created

hostname methane.Jupiter sets the hostname to methane.Jupiter

hostname -s (short host name) returns the first part of the hostname
(to the first dot)
methane would be returned in this case
(Note - BSD does not have this option)
hostname -i returns the ip address for the host
127.0.0.1 was returned here