DEV Community

loading...

Discussion on: What's one thing about Linux you wish you'd known?

Collapse
matstrange profile image
Mat Strange

Reverse search (ctrl r)
When someone showed me this it was a game changer and sped up things no end - no more endlessly going through this history line by line to find an old command you want to use again and hadn't copied to a scratch notepad!

Collapse
cyberjack profile image
CyberJack

I use fzf (a command line fuzzy finder) in addition to ctrl+r. Now I can easily search through my history.

See: github.com/junegunn/fzf

Collapse
nocnica profile image
Collapse
ferricoxide profile image
Thomas H Jones II

Technically, that's more a function of the shell you've chosen to use than a true Linuxism. Which is to say, you'll find that functionality on any OS that has a recent-enough version of BASH (possibly other interactive shells, too). ;)

Collapse
matstrange profile image
Mat Strange

Well as a linux beginner at the time, I was glad I gave it a BASH :D

Collapse
yujiri8 profile image
Ryan Westlund

You might be interested in the Fish shell :) It has history-based autosuggestions out of the box, which show up in greyed-out text, so you can type the first few letters of the command and tap right arrow to accept it, ctrl-right to accept only the next word, or space and then one of its arguments at the beginning and then up arrow to search for previous commands with that argument. (I wrote a review of the Fish shell.)