@[email protected] to [email protected] • 1 year agoLinux terminal users be likesh.itjust.worksimagemessage-square104fedilinkarrow-up1684
arrow-up1665imageLinux terminal users be likesh.itjust.works@[email protected] to [email protected] • 1 year agomessage-square104fedilink
minus-square@[email protected]linkfedilink4•1 year agocat .bash_history | grep keyword But yeah pretty much.
minus-square@[email protected]linkfedilink5•1 year agoWhy not just history | grep keyword then? Works in any directory.
minus-square@[email protected]OPlinkfedilink2•1 year agoYou know you don’t actually have to do cat 😂. But yeah, I know, I do it as well 🤣.
minus-square@[email protected]linkfedilink1•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