FG
💻 Software

How can I set my BASH history scrolling to filter by what I've already typed?

Fresh5 days ago
Mar 15, 20262976 views
Confidence Score0%
0%

Problem

Given a history of commands: When you press the Up arrow, you scroll through all those commands. I've read it somewhere before (and done it in my work PC) that you can set-up BASH such that when I first type then press the Up arrow, it would only scroll through all commands in history that starts w…

Error Output

1 pwd
2 mysql -u root -p
3 ps -ef | more
4 top
5 mysql -h 192.168.1.101 -u root -p

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 set my BASH history scrolling to filter by what I've already typed?

Low Risk

You can configure incremental searching in (for machine-wide changes), or (just for your user account). Add these two lines:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment