{"id":10094,"date":"2020-05-24T16:06:01","date_gmt":"2020-05-24T16:06:01","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=10094"},"modified":"2020-05-24T16:35:20","modified_gmt":"2020-05-24T16:35:20","slug":"boot-ubuntu-20-04-command-console","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/05\/boot-ubuntu-20-04-command-console\/","title":{"rendered":"How to Boot Ubuntu 20.04 into Text \/ Command Console"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/09\/ubuntu-logo245.png\" alt=\"\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-7151\" \/><\/p>\n<p>Need to do some work in the black &#038; white command line console? You can press <b>Ctrl+Alt+F3<\/b> on keyboard to switch from the current session to tty3 text console, and switch back via <b>Ctrl+Alt+F2<\/b>.<\/p>\n<p>From the startup grub boot-loader menu entry, you may select the <i><u>Advanced Options > recovery mode > Drop to root shell prompt<\/u><\/i> to get into text mode. However you need to run command <code>mount -o rw,remount \/<\/code> to get file system write permission.<\/p>\n<p><b>If you want to make Ubuntu automatically boot into the text mode<\/b>, configure grub settings by doing following steps one by one:<\/p>\n<p><b>1.<\/b> Open terminal and run command to backup the configuration file:<\/p>\n<pre style=\"border:None;\">sudo cp -n \/etc\/default\/grub \/etc\/default\/grub.backup<\/pre>\n<p><b>2.<\/b> Edit the configuration file via command:<\/p>\n<pre style=\"border:None;\">sudo gedit \/etc\/default\/grub<\/pre>\n<p>When the file opens, do:<\/p>\n<ul>\n<li>disable <code>GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"<\/code> by adding <b>#<\/b> at the beginning.<\/li>\n<li>set <code>GRUB_CMDLINE_LINUX=\"\"<\/code> to <code>GRUB_CMDLINE_LINUX=\"text\"<\/code><\/li>\n<li>remove # from the line <code>GRUB_TERMINAL=\"console\"<\/code> to disable graphical terminal.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/enable-text.png\" alt=\"\" width=\"600\" height=\"381\" class=\"aligncenter size-full wp-image-10095\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/enable-text.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/enable-text-450x286.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>3.<\/b> Save the file and apply changes by running command:<\/p>\n<pre style=\"border:none;\">sudo update-grub<\/pre>\n<p><b>4.<\/b> One more command is required as Ubuntu now uses systemd:<\/p>\n<pre style=\"border:none;\">sudo systemctl set-default multi-user.target<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/systemctl-tty-600x121.jpg\" alt=\"\" width=\"600\" height=\"121\" class=\"aligncenter size-large wp-image-10097\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/systemctl-tty-600x121.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/systemctl-tty-450x91.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/systemctl-tty.jpg 706w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h4>How to Restore:<\/h4>\n<p>To restore changes, simply move back the backup file via command:<\/p>\n<pre style=\"border:None;\">sudo mv \/etc\/default\/grub.backup \/etc\/default\/grub<\/pre>\n<p>And run <code>sudo update-grub<\/code> to apply change.<\/p>\n<p>Also change the setting back in systemd via command:<\/p>\n<pre style=\"border:none;\">sudo systemctl set-default graphical.target<\/pre>","protected":false},"excerpt":{"rendered":"<p>Need to do some work in the black &#038; white command line console? You can press Ctrl+Alt+F3 on keyboard to switch from the current session to tty3 text console, and switch back via Ctrl+Alt+F2. From the startup grub boot-loader menu entry, you may select the Advanced Options > recovery mode > Drop to root shell [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1913],"class_list":["post-10094","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-text-mode"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=10094"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10094\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=10094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=10094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=10094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}