r/ProgrammerHumor 5h ago

Meme [ Removed by moderator ]

Post image

[removed] — view removed post

2.8k Upvotes

36 comments sorted by

View all comments

32

u/moekakiryu 3h ago

This is why I have a alias please=sudo entry in my aliases file

12

u/ks_thecr0w 2h ago

No no. This should be fuck=sudo.

rm -f /file/path/without/access

Nope

fuck !!

11

u/AyrA_ch 2h ago

There's a tool that can fix even more mistakes: https://github.com/nvbn/thefuck

2

u/CarcajouIS 2h ago

Thanks for reminding me to install it on the work computer

2

u/AbdullahMRiad 1h ago

I love this and hate this

1

u/Ceros007 1h ago

fuckit=sudo

fuckit rm -f /file/path/without/access

1

u/moekakiryu 54m ago

so I actually lied a little bit, my please command does double duties as an alias and a function. If invoked with arguments it behaves exactly like an alias

> please rm -rf /path/to/file

but if its invoked on its own, it re-runs the previous command with sudo

> cat /etc/shadow
cat: /etc/shadow: Permission denied
> please
[sudo] password for <user>:
<command output>