Getting the previous line in Bash after a new command?
In the Bash terminal, I often type a command and realize that I need to execute that command. I press the up arrow to get the previous command and then go back to the original sudo type and type.
Is there a way to enter sudo then press a key to take out the previous command after sudo?
source to share