@[email protected] to linuxmemes • 2 years agoLinux terminal users be likesh.itjust.worksimagemessage-square136fedilinkarrow-up11.08Karrow-down120
arrow-up11.06Karrow-down1imageLinux terminal users be likesh.itjust.works@[email protected] to linuxmemes • 2 years agomessage-square136fedilink
minus-square@[email protected]OPlinkfedilink2•2 years agoYou know you don’t actually have to do cat 😂. But yeah, I know, I do it as well 🤣.
minus-square@another_kbin_addictlink1•2 years 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