572
sudo !! (infosec.pub)
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 8 points 1 year ago* (last edited 1 year ago)

It just expands into the last command you put in your shell, so it's useful for retrying a command that you want to prepend with sudo for example, if you realize you needed elevated privileges, or maybe you want to pipe something in it, pipe it through something, redirect its output etc.

[-] [email protected] 5 points 1 year ago

Brilliant -- I've needed this so many times. Thanks for the explanation

this post was submitted on 18 Jul 2023
572 points (98.1% liked)

linuxmemes

20765 readers
1752 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS