you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 1 week ago (5 children)

history | grep

!

You can do reverse search but I’m too lazy to remember the sequence right now

  • source
  • parent
  • hideshow 10 child comments
  • [–] 7 points 1 week ago (1 child)

    Oh thanks for this. I've been using history | grep $something for the longest time, but i always end up copy pasting the actual command cause i didn't remember how to invoke the number, and copy pasting is so quick that you end up never looking up how to do it properly lol.

  • source
  • parent
  • hideshow 2 child comments