RHL 4.5: URGENT: as root, I ran hostname help; now, when I run hostname, I get help... how do I change to reflect the name of the computer?

epifanio67
epifanio67 used Ask the Experts™
on
Hello experts,

as root, I ran
hostname help

now, when I run
hostname
I get
help

However, when I check on /etc/hosts and /etc/sysconfig/network, the name has not changed...

I am confused...

as root, does my hostname change when I run
hostname something
?

thx,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ofcourse it would change.

So now change to

hostname  <HOSTNAME>

And it would reset it

If you want to see the command help you can do
man hostname

Author

Commented:
thank you...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial