CentOS change hostname without reboot

you can do it in 2 steps:

vim installation via yum in centos

some people prefer pico or others, I prefer vi and ofcourse vim, to install it in 32 & 64bit run: