• @snake
    link
    41 year ago

    cat .bash_history | grep keyword

    But yeah pretty much.

    • @1337
      link
      51 year ago

      Why not just history | grep keyword then? Works in any directory.

    • @another_kbin_addict
      link
      11 year ago

      Yeah, I grep on history and then !<number> to execute the line I want