I know i know…..its really annoying when we type something without sudo and it asks for sudo and now we have to retype the whole things with sudo (or go to the previous command [with up arrow] and then move back with arrow keys or home key or anything…)
while its a good approach…there is even a better approach to do it. It helps all the time and in many ways not only in sudo
!!
YESSS….that’s all it
The
!!
stores the previously ran command in the memory. This can be used with sudo likesudo !!
!!
Literally anything we cant we can use it with…even in subshell or shell scripts or automation or anything
Have fun
Leave a Reply
You must be logged in to post a comment.