cm0002@lemmy.world to Programmer Humor@programming.dev · 1 month agoLinux Userslemmy.mlexternal-linkmessage-square64fedilinkarrow-up193arrow-down15
arrow-up188arrow-down1external-linkLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1 month agomessage-square64fedilink
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1 month 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-up0·1 month 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·1 month 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 -iand the search term?even if there are several, you can use ! and the command’s line number to run it again
historyis shell dependent.