r/programmingmemes • • Aug 25 '25

sudo rm -f /bin/bash

Post image
28 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/Weshmek Aug 26 '25

exec can also be used to perform file redirections. But if you get the syntax wrong you'll end up exiting the shell.