[Bash Tricks]: sudo to last run command
To re-run the previous command, we can use the below special way in bash. !! #This re-runs the previous command But the question is, why should i run ‘!!’ instead of using up arrow for previous command. One quick use case would be for running ‘sudo’. We often end up in ‘Permission denied’ error and…