you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 9 months ago (8 children)

It's a nice precautionary measure

  • source
  • hideshow 8 child comments
  • [–] 17 points 9 months ago* (last edited 9 months ago) (7 children)

    It is indeed.

    For those unaware: sudo !! if your previous command failed because you forgot sudo.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 7 points 9 months ago (5 children)

    Let's say I run something like rm a.txt && rm b.txt, will sudo !! work for both commands or just the first?

  • source
  • parent
  • hideshow 5 child comments