Nix, Robert P. wrote:
Another way to find the references would be to cd to /etc, and then do:
Find . -exec grep -l currentname {} \;
This will list all the files where the current name appears. Then pick your method of changing them. System-config-network appears to be the best GUI tool. Vi or sed would work as well.
The host name is set by the "/etc/sysconfig/network" file. Edit it and
change the "HOSTNAME=" line. The hostname will change on the next
reboot. If you must change it NOW, as root:
hostname new-host-name.domain.tld
Your prompt won't change until you log out and log in again since the
prompt is set by your shell's login script.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens@xxxxxxxxxxxxxxx -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- grasshopotomaus: A creature that can leap to tremendous heights... -
- ...once. -
----------------------------------------------------------------------