Changing Server Hostname

To change your hostname, enter the following command as root:

$ hostname servername.yourdomain.com

If you are using cPanel, you will need to resync your license with the cPanel license server.  To do this, use the following command:

$ /usr/local/cpanel/cpkeyclt

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Common SSH Commands - Linux Shell Commands

Navigating in UNIX pwd Shows the full path of the current directory ls Lists all...

Show disk space used by directories below

If you want to get a the total space used in the directories below try # du -hs * output will...