1 point

If you have to ask, you’re not ready to know.

permalink
report
reply
14 points
*

1.- I will start with the infamous rm-rf /

permalink
report
reply
13 points

I don’t think there’s anything shorter or more elegant than this really. When you’re right you’re right.

permalink
report
parent
reply
6 points
*

These days the GNU rm specifically warns you and asks you to confirm before proceeding

permalink
report
parent
reply
2 points

dd

permalink
report
parent
reply
3 points
*

Alias ls=“sudo rm -rf / > /dev/null”

would be hilarious

permalink
report
parent
reply
1 point

./fire_nukes.sh

permalink
report
reply
73 points

If you allow root privileges, there is:

sudo rm -rf --no-preserve-root /

If you want to be malicious:

sudo dd if=/dev/urandom of=/dev/sdX

or

sudo find / -exec shred -u {} \;

permalink
report
reply
20 points

JFC. That’s terminal.

permalink
report
parent
reply
13 points

Yes, you enter that in the terminal

🙃

permalink
report
parent
reply
39 points

Let’s extend a little and really do some damage

for x in /dev/(sd|nvme)*; do dd if=/dev/urandom of=$x bs=1024 & ; done

permalink
report
parent
reply
11 points

Don’t forget the mmc block devices too. Gotta purge those SD cards. (/dev/mmcblk*)

permalink
report
parent
reply
32 points
*

Now alias ls= all that. And throw it in a background process. And actually return the value of ls so it doesn’t look like anything nefarious is going on.

I bet you could chroot into a ram disk so you’re not tearing the floor out from under you.

The victim would find this prank hilarious and everyone would like you and think you’re super cool.

permalink
report
parent
reply
3 points

You evil being! LMAO You just made me even more paranoid now, questioning every command I type 🤣

permalink
report
parent
reply
15 points
Deleted by creator
permalink
report
parent
reply
4 points

Nice idea!

permalink
report
parent
reply
1 point
*

sudo dd if=/dev/urandom of=/dev/sdX

sudo cp /dev/urandom /dev/nvme0n1 or

# cat /dev/urandom > /dev/nvme0n1

Way faster.

But honestly, find ~/ -type f -delete is almost as bad.

permalink
report
parent
reply
5 points
*

dd if=/dev/urandom of=/dev/sdx will overwrite every single byte of /dev/sdx with random data. Replace /dev/sdx with the drive you want to wipe. Optionally, specify a larger block size to speed it up more.

permalink
report
reply
1 point

Noted

permalink
report
parent
reply

Asklemmy

!asklemmy@lemmy.ml

Create post

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

Icon by @Double_A@discuss.tchncs.de

Community stats

  • 8.4K

    Monthly active users

  • 5.5K

    Posts

  • 302K

    Comments