FG

How can I create keyboard shortcuts to run commands in a terminal?

Fresh3 days ago
Mar 15, 20263907 views
Confidence Score0%
0%

Problem

I was wondering is it possible to bind say F5 to output so I can press one key to write this into the terminal?

Error Output

sudo apt-get update

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I create keyboard shortcuts to run commands in a terminal?

Low Risk

Add the following to `~/.inputrc": The character sequence to put in the beginning can be gotten by using CtrlV F5 and changing the that shows up to . The change won't take effect until you open a new shell though.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment