0x4E4F@sh.itjust.works to linuxmemes@lemmy.world · 1 year agoLinux terminal users be likesh.itjust.worksimagemessage-square103fedilinkarrow-up1691arrow-down117
arrow-up1674arrow-down1imageLinux terminal users be likesh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.world · 1 year agomessage-square103fedilink
minus-squaresnake@lemmy.worldlinkfedilinkarrow-up4·1 year agocat .bash_history | grep keyword But yeah pretty much.
minus-square1337@lemmy.worldlinkfedilinkarrow-up5·1 year agoWhy not just history | grep keyword then? Works in any directory.
minus-square0x4E4F@sh.itjust.worksOPlinkfedilinkarrow-up2·1 year agoYou know you don’t actually have to do cat 😂. But yeah, I know, I do it as well 🤣.
minus-squareanother_kbin_addict@lemmy.worldlinkfedilinkarrow-up1·1 year agoYeah, I grep on history and then !<number> to execute the line I want
cat .bash_history | grep keyword
But yeah pretty much.
Why not just
history | grep keyword
then? Works in any directory.You know you don’t actually have to do cat 😂. But yeah, I know, I do it as well 🤣.
Yeah, I grep on history and then !<number> to execute the line I want