At first my hostname was localhost.localdomain in CentOS 6.2
I installed ubuntu in separate partition after that my hostname was changed to this
###-###-###-###-####.####.example.com
In /etc/sysconfig/network of CentOS it shows hostname as
NETWORKING=yes
HOSTNAME=localhost.localdomain
But while running env command it showing hostname as
HOSTNAME=###-###-###-###-####.####.example.com
now what should I do to change my hostname to localhost.localdomain
hostnamecommand. – Daniel Andersson Aug 9 '12 at 15:57