Nazaretyan's blog blog about everthing ….

9Apr/101

how to change hostname in linux without restart

its quite simple ..

you need just to echo new hostname into /proc/sys/kernel/hostname

for exmaple -

echo "NEWHOSTNAME" > /proc/sys/kernel/hostname

logoff and login again to host :)

but remeber to add the new hostname to /etc/hosts as well

regards

Moushegh

Comments (1) Trackbacks (0)
  1. бля… все так просто…


Leave a comment

(required)

No trackbacks yet.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes