Avatar of vmwarecv1
vmwarecv1

asked on 

hostname returning FQDN, what should be done for hostname to return just hostname

Hi
When I enter the command hostname output is
hostname1.domain1.com
but I wanted hostname to return just
hostname1
/etc/hosts has this format
ip     fqdn    hostname
should i change this to
ip    hostname   fqdn

What should be done.
OS is RHEL 5.2

Thanks in advance
LinuxUnix OS

Avatar of undefined
Last Comment
Morne Lategan

8/22/2022 - Mon