cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoLinux Usersimagemessage-square134linkfedilinkarrow-up11.27Karrow-down123cross-posted to: programmerhumor@lemmy.ml
arrow-up11.25Karrow-down1imageLinux Userscm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square134linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·23 hours agoIt was quite a while before I realised that was possible. Then not long after starting to use it, that I got fed up and just started opening up the history file and searching in it.
minus-squaredropcase@lemmy.worldlinkfedilinkarrow-up3·20 hours agowhy not history | grep -i and the search term? even if there are several, you can use ! and the command’s line number to run it again
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up1·18 hours agohistory is shell dependent.
It was quite a while before I realised that was possible.
Then not long after starting to use it, that I got fed up and just started opening up the history file and searching in it.
why not
history | grep -i
and the search term?even if there are several, you can use ! and the command’s line number to run it again
history
is shell dependent.