Tuesday, December 5, 2023
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3268  / 2 Years ago, thu, december 30, 2021, 8:53:04

In Ubuntu 19.10, how can you exit the desktop and go straight to a terminal?

I'd prefer to do this using a command, instead of Ctrl-Alt-F1 type techniques, because I'm doing this in a virtual machine, and I don't want those keys-combinations to be mistakenly directed to the host instead of being direct to the virtual machine.

More From » command-line

sudo systemctl isolate Name (multi-user.target) in your case

Start the unit specified on the command line and its dependencies
and stop all others, unless they have
IgnoreOnIsolate=yes (see systemd.unit(5)). If a unit name with no extension is given, an extension of ".target" will
be assumed.

This is similar to changing the runlevel in a traditional init system. The isolate command will immediately stop
processes that are not enabled in the new unit, possibly including the graphical environment or terminal you are
currently using.

Note that this is allowed only on units where AllowIsolate= is enabled. See systemd.unit(5) for details.

Stolen from manpage.

[#4707] Friday, December 31, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 164
Total Questions: 111
Total Answers: 107

Location: South Georgia
Member since Sun, Aug 8, 2021
2 Years ago
irripri questions
Mon, Aug 29, 22, 03:19, 1 Year ago
Thu, Mar 30, 23, 01:56, 9 Months ago
Sat, Mar 26, 22, 04:01, 2 Years ago