alias for previous command
sometimes you write a long command and after entering you remember that you haven't enter sudo at the beginning (or you wanna pipe it to another command).
simply with !! command you can invoke the previous command:
sudo !!
!! | lessWritten by Arash M
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Related Tags
#shell
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#