image of a cat looking at a bunch of paper a woman shows it, with the header “cat ~/.bash_history”

  • XEAL@lemm.ee
    link
    fedilink
    arrow-up
    16
    ·
    1 year ago

    I actually use quite frequently "sudo !!“, but I didn’t know the details of why it worked…

    Now I see more sense in using the history command, specially combined with grep.

    • platypus_plumba@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Same here, I just assumed it was a special thing that saved the last command. Had no idea it was actually a query to the history