To change hostname on a machine quickly


echo 'hostname' > /proc/sys/kernel/hostname

logout and log to see the changes.

The proc dir is a pseudo file system. To do it permanently, you need to change /etc/sysconfig/network and /etc/hosts

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Slashdot
  • TwitThis
  • Yahoo! Buzz