I knew of the sudo !! trick, but I never used it because I'd prefer to ⬆ and edit to know exactly what I was running. This is a super useful extra trick! Thank you!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The expansion should also work with special symbols like
!!and!$.If you forgot to add
sudobefore running a command you can typesudo !!+ space to get right one.I knew of the
sudo !!trick, but I never used it because I'd prefer to ⬆ and edit to know exactly what I was running. This is a super useful extra trick! Thank you!