DEV Community

Aubrey
Aubrey

Posted on

2 1

Search for last shell cmd

Search for last shell cmd

I can explain this all... though the following links do that better... So would be just weird to try to explain general information. THe Elephant is gray the disk is warped.

from DO documentation

For instance, you can type CTRL-r, and begin typing part of the previous command. You only have to type out part of the command. If it matches an unwanted command instead, you can press CTRL-r again to see the next result.

Other stuff.. DO has a nice overview for simple things

Why explain that here as they explain it better

https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps

hashag giveachance

Top comments (2)

Collapse
 
gokuldroid profile image
Gokuldroid

This does a better job at this. Hope you will like it - github.com/junegunn/fzf

Collapse
 
aubs profile image
Aubrey

I like the idea (seen it before), but.. yeah sorry, I am not into that kind of fuzzy find cli command.. too much false positives could happen

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay