cm0002@lemmy.world to Programmer Humor · 13 days agoLinux Userslemmy.mlimagemessage-square151linkfedilinkarrow-up11.32Karrow-down127cross-posted to: [email protected]
arrow-up11.3Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor · 13 days agomessage-square151linkfedilinkcross-posted to: [email protected]
minus-squareulternolinkfedilinkEnglisharrow-up0·12 days 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·12 days 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
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.