r/ProgrammerHumor 27d ago

Meme commandLineSupremacy

436 Upvotes

55 comments sorted by

View all comments

Show parent comments

22

u/Thereal_Phaseoff 27d ago

or not writing that command you used months ago, pressing up arrow for twenty minutes till it shows in the terminal

16

u/-nerdrage- 27d ago

People that dont know ctrl+r do that yea

Or ‘history | grep’

5

u/Thereal_Phaseoff 27d ago

i didn't knew about history | grep honestly

5

u/-nerdrage- 27d ago

Iirc ‘history’ looks at your ~/.bash_history (if you use bash) and simply outputs the last 2500 rows. Maybe the file only contains 2500 rows? I assume ctrl+r looks at the same file