{"id":3597,"date":"2014-09-25T12:23:52","date_gmt":"2014-09-25T04:23:52","guid":{"rendered":"http:\/\/rmohan.com\/?p=3597"},"modified":"2014-09-25T12:24:40","modified_gmt":"2014-09-25T04:24:40","slug":"rhel-7-rescue-mode","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3597","title":{"rendered":"RHEL 7 RESCUE MODE"},"content":{"rendered":"<p>To list all currently loaded service units:<br \/>\nsystemctl list-units &#8211;type service<\/p>\n<p>To list all installed service units:<br \/>\nsystemctl list-unit-files &#8211;type service<\/p>\n<p>Lists currently loaded target units:<br \/>\nsystemctl list-units &#8211;type target<\/p>\n<p>Changes the current target:<br \/>\nsystemctl isolate name.target<\/p>\n<p>systemctl get-default<\/p>\n<p>systemctl set-default name.target<\/p>\n<p>systemctl rescue\u00a0 (single user mode)<\/p>\n<p>resetting root password:<br \/>\nedit boot kernel line, insert init=\/bin\/bash, remove rhgb,quiet<br \/>\nmount -o remount,rw \/<br \/>\npasswd<br \/>\nexec \/sbin\/init ( or exec \/sbin\/reboot )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To list all currently loaded service units: systemctl list-units &#8211;type service<\/p>\n<p>To list all installed service units: systemctl list-unit-files &#8211;type service<\/p>\n<p>Lists currently loaded target units: systemctl list-units &#8211;type target<\/p>\n<p>Changes the current target: systemctl isolate name.target<\/p>\n<p>systemctl get-default<\/p>\n<p>systemctl set-default name.target<\/p>\n<p>systemctl rescue (single user mode)<\/p>\n<p>resetting root password: edit boot kernel line, insert [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,50],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3597"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3597"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3597\/revisions"}],"predecessor-version":[{"id":3598,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3597\/revisions\/3598"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}