AH shit here we go again !

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 like

sudo !!


Literally anything we cant we can use it with…even in subshell or shell scripts or automation or anything

Have fun


Leave a Reply

Your email address will not be published. Required fields are marked *