cm0002@lemmy.world to Programmer Humor@programming.dev · 1か月前Linux Userslemmy.mlimagemessage-square150fedilinkarrow-up11.12Karrow-down126cross-posted to: programmerhumor@lemmy.ml
arrow-up11.1Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 1か月前message-square150fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up0·1か月前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.
minus-squaredropcase@lemmy.worldlinkfedilinkarrow-up3·1か月前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
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.