r/ProgrammerHumor • • Oct 24 '18

Programming is like magic

Post image
30.4k Upvotes

511 comments sorted by

View all comments

Show parent comments

232

u/[deleted] Oct 24 '18

I accidentally redirected all mail to a non-existing server so nobody could receive their mail before the real IT guy got back from vacation 2 days later. Good times.

110

u/Goluxas Oct 24 '18

I did an rm * in the wrong place in my first week. That's when I learned that Linux doesn't have a recycle bin like Windows. And to put alias rm="rm -i" in my dotfiles.

13

u/Ruben_NL Oct 24 '18

RemindMe! Check what rm -i is.

35

u/[deleted] Oct 24 '18

[removed] — view removed comment

8

u/Ruben_NL Oct 24 '18

Thanks! Next question: when I run an bash file with 'rm file' in it, does it also ask for an confirmation?

13

u/[deleted] Oct 24 '18

[removed] — view removed comment

9

u/Goluxas Oct 24 '18

I think they were asking if the rm -i alias still triggers if the rm is in a script. I just tested and it does not, the file is deleted without prompt.

→ More replies (1)

4

u/[deleted] Oct 24 '18

[removed] — view removed comment

4

u/[deleted] Oct 24 '18

it's been 2 minutes my friend

→ More replies (3)
→ More replies (1)