­čść You can make a $ please┬ácommand which reruns your last command, but with┬ásudo prefixed. Set it up by putting the following in┬á~/.bash_profile or ~/.bash_aliases: alias please="sudo !!"┬á

davidsword$ cp /dev/null /Users
cp: /Users/null: Permission denied
davidsword$ please
Password:
?

Leave a Reply

%d bloggers like this: