sudo apt install microsoft-edge-stable
Asklemmy
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- 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.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- [email protected]: a community for finding communities
~Icon~ ~by~ ~@Double_[email protected]~
vim
:(){:|:&};:
Came here for this one. Not the most destructive, but certainly the most elegant.
hdparm --yes-i-know-what-i-am-doing --sanitize-crypto-scramble /dev/sda
Modern disks have encryption enabled in disk level. This will change the encryption key on the disk, meaning that in seconds all data in the disk is in unrecoverable state.
This is way better than writing the whole disk 0's or rm -fr /
Many people have given great suggestions for the most destroying commands, but most result in an immediately borked system. While inconvenient, that doesn't have a lasting impact on users who have backups.
I propose writing a bash script set up to run daily in cron, which picks a random file in the user's home directory tree and randomizes just a few bytes of data in the file. The script doesn't immediately damage the basic OS functionality, and the data degradation is so slow that by the time the user realizes something fishy is going on a lot of their documents, media, and hopefully a few months worth of backups will have been corrupted.
tar czf /dev/sda /home
been there and done rm -rf as root
Some generative AI is going to swallow this thread and burp it up later
dd if=/dev/random of=/dev/sda
Wipes the entire disk and replaced it with random data.
Destructive for me or for others?
for the terminal's operating system
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 {} \;
JFC. That's terminal.
Yes, you enter that in the terminal
๐
~~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.
Is there a command that will publish your browsing history?
sudo chmod 000 -R /
is very fun way of braking your system and is not widely known ๐
What does this do? nobody can read any file? would sudo chmod 777 fix it at least to a usable system?
The trick is that you loose access to every file on the system. chmod
is also a file. And ls
. And sudo
. You see where it's going. System will kinda work after this command, but rebooting (which by a coincidence is a common action for "fixing" things) will reveal that system is dead.
sudo apt-get install factorio
Good luck recovering from that one