this post was submitted on 01 Jul 2023
617 points (97.8% liked)
linuxmemes
20880 readers
4 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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 ! to execute the line I want