Skip to content

Instantly share code, notes, and snippets.

@davidsword
Created April 20, 2018 01:54
Show Gist options
  • Save davidsword/8ab086dc747a28357b7d276e121195d2 to your computer and use it in GitHub Desktop.
Save davidsword/8ab086dc747a28357b7d276e121195d2 to your computer and use it in GitHub Desktop.
Bash - rerun the last script as sudo with "$ please"
alias please="sudo !!"
@davidsword
Copy link
Author

$ rm /etc/something
rm: /etc/something: Permission denied
$ please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment