Saturday, April 20, 2024
227
rated 0 times [  227] [ 0]  / answers: 1 / hits: 39219  / 2 Years ago, wed, february 23, 2022, 3:55:31

Sometimes when I run a command I don't notice that I needed to run it as super user to have enough permission.



Is there a way to run the same command again but as a super user?


More From » command-line

 Answers
5

The simplest way is to run:



sudo !!


This will run the last command but as super user.



Source.


[#31014] Thursday, February 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pantkie

Total Points: 209
Total Questions: 112
Total Answers: 138

Location: Venezuela
Member since Sat, Apr 24, 2021
3 Years ago
;