{"id":1382,"date":"2024-06-13T13:18:30","date_gmt":"2024-06-13T13:18:30","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=1382"},"modified":"2025-05-24T04:05:41","modified_gmt":"2025-05-24T04:05:41","slug":"redhat-boot-target","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=1382","title":{"rendered":"Redhat &#8211; Boot Target"},"content":{"rendered":"<p>A Linux systems can boot up\u00a0in various modes\u00a0based on user preference. For example we can configure a node to start on GUI mode, where once the node boots, the user will get a GUI based login screen, and will open a GUI window for user to start using it. It may be a preference on user who want to use the Linux node as a workstation for example. On the other hand, a server administration may prefer his system to start in multi-user CLI mode were the system will save resources on loading all GUI modules.<\/p>\n<p>The below command verifies the default environment on which a system boots. Different pre-set modes available are:<\/p>\n<ul>\n<li>graphical.target<\/li>\n<li>multi-user.target<\/li>\n<li>rescue.target<\/li>\n<li>emergency.target<\/li>\n<\/ul>\n<p><strong>[root@centos9test1 ~]#<\/strong> systemctl get-default<br \/>\ngraphical.target<\/p>\n<p>====== ===<\/p>\n<p>Though the above node is presently on gui mode, which can be observed if a serial console or monitor is connected, the below command will switch the mode for GUI to multi-user CLI, that will be noticed on the console too.<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong> systemctl isolate multi-user.target<\/p>\n<p>Please\u00a0<em>note<\/em> that this command will not change the default setting, so that it goes back to GUI after a reboot.<\/p>\n<p>The below command needs to be used if the default target needs to be changed<\/p>\n<p><strong>[root@centos9test1 ~]#<\/strong> systemctl set-default multi-user.target<br \/>\nRemoved &#8220;\/etc\/systemd\/system\/default.target&#8221;.<br \/>\nCreated symlink \/etc\/systemd\/system\/default.target \u2192 \/usr\/lib\/systemd\/system\/multi-user.target.<\/p>\n<p>===== ==<\/p>\n<p>In case\u00a0we need the system to boot in a GUI mode\u00a0before loading the OS, the below process can be used.<\/p>\n<p>As the server is powered-on and starts-up, at the <em>grub<\/em> window, enter to the <em>edit<\/em> option. On the line that starts with <em>linux<\/em> append the following, and press <em>ctrl+X<\/em><\/p>\n<ul>\n<li>systemd.unit=graphical.target<\/li>\n<\/ul>\n<p>Similarly we can boot to a rescue or emergency mode too using the respective target.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>A Linux systems can boot up\u00a0in various modes\u00a0based on user preference. For example we can configure a node to start on GUI mode, where once <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=1382\" title=\"Redhat &#8211; Boot Target\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1799,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,30],"tags":[],"class_list":["post-1382","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-rhel-9"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1382"}],"version-history":[{"count":6,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1382\/revisions"}],"predecessor-version":[{"id":1798,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/1382\/revisions\/1798"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/1799"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1382"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}