r/ProgrammerHumor • • Jan 23 '23

Other God's developer console

Post image
60.7k Upvotes

2.7k comments sorted by

View all comments

Show parent comments

19

u/ChocolateMagnateUA Jan 23 '23

rm is used to delete the contents of directory. Outside of your respective home user directory, you need to prefix it with sudo since you are doing system-wide changes. In this example, the commentator deletes cancer, plastic waste in oceans in Bash scripting manner. Basically this post represents the omnipotent terminal.

3

u/Loud_Tradition_1911 Jan 23 '23

Oh i see...thanks a lot bro

2

u/IronTippedQuill Jan 23 '23
  • is a wildcard character, so *.cancer will remove all files with .cancer attached.

2

u/diras2010 Jan 23 '23

However this have a caveat, because there are survivors from cancer, and removing .cancer means that they will get deleted

Furthermore if a body has some sort of cancer resistance removing .cancer means removing said resistance

1

u/ChocolateMagnateUA Jan 24 '23

Not too bad as there won't be any cancer in the first place.

1

u/ChocolateMagnateUA Jan 24 '23

Might be better to use some regex instead.