[CentOS] Changing hostname?

Sat Sep 13 15:57:48 UTC 2008
Akemi Yagi <amyagi at gmail.com>

On Sat, Sep 13, 2008 at 8:42 AM, mouss <mouss at netoyen.net> wrote:
> mouss wrote:
>> admin wrote:

>>> service network restart

>> no need to restart, just run the hostname command to set your system
>> hostname.
> caveat though: the hostname command won't affect already running services if
> they rely on the hostname.

Would this do?

echo newname > /proc/sys/kernel/hostname