Created
August 14, 2019 14:55
-
-
Save renatoassis01/f6cec032d05bfd380815de3b23445b24 to your computer and use it in GitHub Desktop.
Magic alias sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://twitter.com/GordonDiggs/status/1160901231277215744 | |
alias please='sudo $(fc -ln -1)' | |
~$ bash ./helloworld | |
bash: ./helloworld: permission denied | |
~$ please | |
Hello World! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment