Its most common that you might forget to type in the 'sudo' command along with some other commands. I have faced this problem many times and usually end up by typing the entire command with sudo keyword again. Here is a technique that we can use to avoid retyping the command again after typing sudo.
Consider that i have to install a package called blueman system with the apt package manager via the terminal. Here i am not adding the sudo command before the apt command
Then type the following command to avoid rexecuting the command with all permissions
$ sudo !!
See here the bash automatically retyped the command with sudo.
0 comments:
Post a Comment
speak out... itz your time !!!