{"id":5,"date":"2013-08-26T09:37:59","date_gmt":"2013-08-26T09:37:59","guid":{"rendered":"http:\/\/muse.oneshot.in\/?p=5"},"modified":"2013-08-26T09:39:06","modified_gmt":"2013-08-26T09:39:06","slug":"change-set-the-host-name-in-linux","status":"publish","type":"post","link":"https:\/\/muse.oneshot.in\/?p=5","title":{"rendered":"Change \/ Set the Host name in Linux"},"content":{"rendered":"<p>To check the host name use the below command<\/p>\n<p><strong>#hostname<\/strong><\/p>\n<p>This will display the host name if already set<\/p>\n<p>To Change the host name temporarly use the below command<\/p>\n<p><strong>#hostname NEW-NAME<\/strong><\/p>\n<p>To make the changes permanent we need to edit two files<\/p>\n<p>1)Network File<br \/>\n2)\/etc\/hosts file<\/p>\n<p>1)Redhat \/ CentOS \/ Fedora: Change Hostname<\/p>\n<p><strong>vi \/etc\/sysconfig\/network<\/strong><br \/>\n<strong>HOSTNAME=NEW-NAME<\/strong><\/p>\n<p>Set only the host name not the domain name extension<\/p>\n<p>2<strong>)vi \/etc\/hostname<\/strong><br \/>\nEnter the ipaddress followed by\u00a0 host name without domain extension after a space<\/p>\n<p><strong>192.168.0.1\u00a0\u00a0 \u00a0NEW-NAME<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To check the host name use the below command #hostname This will display the host name if already set To Change the host name temporarly use the below command #hostname NEW-NAME To make the changes permanent we need to edit two files 1)Network File 2)\/etc\/hosts file 1)Redhat \/ CentOS \/ Fedora: Change Hostname vi \/etc\/sysconfig\/network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-redhat"],"_links":{"self":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":3,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":8,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/8"}],"wp:attachment":[{"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muse.oneshot.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}