exhuser
asked on
Linux host name
Hello,
when I type hostname in the command prompt, it gives me one name. However, when I go to the host file in ECT it is different. The host file has the correct name. How can this be corrected?
when I type hostname in the command prompt, it gives me one name. However, when I go to the host file in ECT it is different. The host file has the correct name. How can this be corrected?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@gheist is correct, if you are talking the newer versions of RedHat/CentOS that run systemd.
Good catch Gheist!
Good catch Gheist!
hostname your.host.com