This change won't take affect until the next reboot, but you can make the change happen immediately using the hostname command like so:
$ hostname ftp.example.com
How do I provide appropriate information about my system when asking questions?
When asking questions on a forum, mailing list, or IRC, it is important to provide correct and complete information about your system. Good general guidance can be found in the Readme First post on the CentOS fora, and in the classic guide "How To Ask Questions The Smart Way" by open source developer and philosopher Eric S. Raymond.
To aid in the process a script getinfo.sh has been developed to collect system information for a variety of classes of questions. Please click on the link, select the text and save the script to a file, for example "getinfo.sh", change the permissions to make it executable and run it:
cat - > getinfo.sh # Note: Ctrl-D is EOF (or right-click and save)
chmod +x getinfo.sh
./getinfo.sh
When asking questions on a forum, mailing list, or IRC, it is important to provide correct and complete information about your system. Good general guidance can be found in the Readme First post on the CentOS fora, and in the classic guide "How To Ask Questions The Smart Way" by open source developer and philosopher Eric S. Raymond.
To aid in the process a script getinfo.sh has been developed to collect system information for a variety of classes of questions. Please click on the link, select the text and save the script to a file, for example "getinfo.sh", change the permissions to make it executable and run it:
cat - > getinfo.sh # Note: Ctrl-D is EOF (or right-click and save) chmod +x getinfo.sh ./getinfo.sh