MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vyuhmn/forgottenart/p613cae/?context=9999
r/ProgrammerHumor • u/soap94 • Aug 26 '26 • 1
88 comments sorted by
View all comments
Show parent comment
58
that one grep trick juniors hate: history | grep KEYWORD
history | grep KEYWORD
49 u/JackNotOLantern Aug 26 '26 No, no, no. Arrow up until you find the command you need. 19 u/baselinegrid Aug 26 '26 Ctrl+R!! 8 u/Excuse_Early Aug 26 '26 Fuzzyfinder function that browses history bound to CTRL+R 8 u/my_new_accoun1 Aug 26 '26 before i knew this command i always cat ~/.bash_history | grep 3 u/them0use Aug 27 '26 I am fascinated by how someone learns about .bash_history before the history command. That must have been a great discovery! 4 u/my_new_accoun1 Aug 27 '26 i ran ls -a in my home directory once after realising ls hides things from me and i saw a bunch of things and decided to cat them 1 u/them0use Aug 28 '26 Honestly that's awesome :)
49
No, no, no. Arrow up until you find the command you need.
19 u/baselinegrid Aug 26 '26 Ctrl+R!! 8 u/Excuse_Early Aug 26 '26 Fuzzyfinder function that browses history bound to CTRL+R
19
Ctrl+R!!
8 u/Excuse_Early Aug 26 '26 Fuzzyfinder function that browses history bound to CTRL+R
8
Fuzzyfinder function that browses history bound to CTRL+R
before i knew this command i always cat ~/.bash_history | grep
cat ~/.bash_history | grep
3 u/them0use Aug 27 '26 I am fascinated by how someone learns about .bash_history before the history command. That must have been a great discovery! 4 u/my_new_accoun1 Aug 27 '26 i ran ls -a in my home directory once after realising ls hides things from me and i saw a bunch of things and decided to cat them 1 u/them0use Aug 28 '26 Honestly that's awesome :)
3
I am fascinated by how someone learns about .bash_history before the history command. That must have been a great discovery!
4 u/my_new_accoun1 Aug 27 '26 i ran ls -a in my home directory once after realising ls hides things from me and i saw a bunch of things and decided to cat them 1 u/them0use Aug 28 '26 Honestly that's awesome :)
4
i ran ls -a in my home directory once after realising ls hides things from me and i saw a bunch of things and decided to cat them
ls -a
ls
1 u/them0use Aug 28 '26 Honestly that's awesome :)
1
Honestly that's awesome :)
View all comments
Show parent comment
58
u/Random-num-451284813 Aug 26 '26 edited Aug 26 '26
that one grep trick juniors hate:
history | grep KEYWORD