troubleshooting Question

Linux console - "searching" your past command history

Avatar of Frosty555
Frosty555Flag for Canada asked on
LinuxLinux DistributionsMicrosoft DOS
7 Comments2 Solutions457 ViewsLast Modified:
I can't believe that this is not doable.

I'm running Ubuntu Server 10.04 at home, and at work I run Debian Lenny.

Back in the DOS days, I could partially type a command, then hit the "F8" key, and if any command I had typed in my history matched what I was typing now it would auto-complete the command to what I had typed before.

Basically it was a quick way to search my history and repeat a command I typed before.

In linux, the "up arrow" method to traverse my history works, but I have no way to "autocomplete" what I'm typing. I usually have to run the "history" command, pipe it to grep, and then copy-paste whatever I see. That is so tedious it usually is worth it to just re-type the command.

Somebody tell me there's an easy way to accomplish the "F8" shortcut that I am so used to using from DOS.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros