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

From LQWiki

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

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, write it to the proc file with the following command:

   # echo newhostname > /proc/sys/kernel/hostname

See also

This article is a stub and needs to be finished. Plunge forward and help it grow!


Personal tools