Skip to content
  • Sample Page
TheShell.Guru
TheShell.Guru

Change hostname – CentOS 7

  • November 18, 2015
  • CentOS 7

Changing the hostname on CentOS 7 is pretty straight forward, issue the following at shell and replace HOSTNAME with the hostname you want to set.

hostnamectl set-hostname HOSTNAME

To verify that the new hostname is set issue the following:

hostnamectl

 

# centos# centos 7# change hostname# host name# hostname# modify host name# modify hostname# os# set hostname# update hostname

Categories

Copyright © 2022 - WordPress Theme by CreativeThemes