Tony wrote:
> How can I change the prompt of the linux hostname (REDHAT) without rebooting
>
> I already changed /etc/hosts
>
>
>
under Red Hat, if you actually want to change the hostname of the
system, you need to edit the file /etc/sysconfig/network
In that file you can specify the hostname with a line like:
HOSTNAME=<new hostname>
you can also specify your domain name, and a slew of other things.
then issue the command:
/etc/init.d/network restart
and your hostname will be changed. IIRC the default Red Hat install
defines PS1 in your bash shell to be your hostname, so any subsequent
shells you open up will reflect the hostname change.
Neil
--
/************************************************** *
*Neil Horman
*Software Engineer
*Red Hat, Inc.,
www.redhat.com
*gpg keyid: 1024D / 0x92A74FA1
*
http://www.keyserver.net
************************************************** */