Ctrl+R
Then type any part of the command (filename, search string, etc)
Ctrl+R again to cycle through the matches.
(Best feature in bash)
Or history | grep 'command'
history | grep 'command'
Can't just hit enter to run the one you want then, though.
Type: !1234 ... to run whatever history number of the command.
I use Arch btw
Sister communities:
Community rules
Please report posts and comments that break these rules!
Ctrl+R
Then type any part of the command (filename, search string, etc)
Ctrl+R again to cycle through the matches.
(Best feature in bash)
Or
history | grep 'command'
Can't just hit enter to run the one you want then, though.
Type: !1234 ... to run whatever history number of the command.