Skip to Content

Alias for the last command

Posted on

In terminal, you can call last command by using arrows key. But right hand need to move. So, just use: C-p and C-n.

If you run a command and forgot putting sudo, for example: apt-get update. A permission denied error will occur.

However, you can run with a trick: sudo !! => !! is a alias for the last command which you type. :D

comments powered by Disqus