This is configured with the ‘hostname’ option in /etc/sysconfig/network. Update that file and either reboot or run the ‘hostname <mynewhostname>’ command. Your current shell will not change but the next time you create a new shell it will be visibile in your shell. If you run the ‘hostname’ command the effect is immediate.
Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave