You're viewing a single thread.
All comments
96
comments
cat .bash_history | grep keyword
But yeah pretty much.
4 0 ReplyWhy not just
history | grep keyword
then? Works in any directory.5 0 ReplyYou know you don't actually have to do cat 😂. But yeah, I know, I do it as well 🤣.
2 0 ReplyYeah, I grep on history and then !<number> to execute the line I want
1 0 Reply
96
comments
Scroll to top