View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > Hostname

From LQWiki

(Redirected from HostName)
Jump to: navigation, search

A Hostname is the name given either to localhost, a computer on a LAN, or a node in the DNS hierarchy.

To find out your hostname, use the following command:

$ uname -n

or

$ hostname

The hostname of a computer can be changed in several different ways. In Red Hat, to permanently change the hostname, modify the HOSTNAME value in: /etc/sysconfig/network

To immediately (but not permanently) change the hostname:

$ hostname newhostname

See also


Share

Personal tools