Sunday, April 28, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2334  / 2 Years ago, mon, may 9, 2022, 1:32:48

Is there a possibility to enter the terminal mode accessible with Ctrl+Alt+F1 with a bash command so that I can tell a script to do so?


More From » command-line

 Answers
5

Since you intend to use a command in a script, you probably want to use something that doesn't need root privileges to be ran as 'chvt' or 'openvt' .



That's why you may prefer xdotool Install xdotool. After you have installed, you can use the following command to simulate this shortcut input Ctrl+Alt+F1:



xdotool key Ctrl+Alt+F1

[#28494] Monday, May 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stantildlike

Total Points: 363
Total Questions: 135
Total Answers: 120

Location: Pitcairn Islands
Member since Fri, Dec 17, 2021
2 Years ago
;