Tuesday, May 14, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 829  / 3 Years ago, thu, november 4, 2021, 8:15:28

In order to install something usually have to run some commands. In order to make it quicker, could I highlight some command text on the internet I want to run in terminal, then press a keyboard shortcut and run it?


More From » command-line

 Answers
3

A simple sequence can do this:




  1. Ctrl+C (Copy to clipboard)

  2. Ctrl+Alt+T (Open a terminal)

  3. Ctrl+Shift+V (Paste from clipboard)



If you're confident in your highlighting abilities, you could probably shorten that to:




  1. Ctrl+Alt+T (Open a terminal)

  2. Shift+Insert (Paste from selection clipboard)



But is there one shortcut that does all this? No, not by default.


[#26128] Friday, November 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
altybol

Total Points: 364
Total Questions: 138
Total Answers: 121

Location: France
Member since Thu, May 6, 2021
3 Years ago
;