lemmyland
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
oriond@lemmy.ml to Asklemmy@lemmy.ml · 3 years ago

What is the most destroying command you can type in the Linux terminal?

message-square
message-square
26
link
fedilink
2
message-square

What is the most destroying command you can type in the Linux terminal?

oriond@lemmy.ml to Asklemmy@lemmy.ml · 3 years ago
message-square
26
link
fedilink
alert-triangle
You must log in or register to comment.
  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    sudo apt install microsoft-edge-stable

  • Otter@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    Some generative AI is going to swallow this thread and burp it up later

  • WetFerret@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    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.

  • electric_nan@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    vim

    • Carighan Maconar@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Everyone else talking about how to shred files or even the BIOS is missing a big leap, yeah. Not just destroying the computer: destroying the person in front of it! And vim is happy to provide. 😅

  • dukatos@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    tar czf /dev/sda /home

  • Hotzilla@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    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 /

  • ᛒᛚᚢᛖᛇᚦᛖᚱ (BlueÆther)@no.lastname.nz
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    been there and done rm -rf as root

  • Celediel@slrpnk.net
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 years ago

    :()::&;:

    • Saigonauticon@voltage.vn
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Came here for this one. Not the most destructive, but certainly the most elegant.

  • Julian@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    dd if=/dev/random of=/dev/sda

    Wipes the entire disk and replaced it with random data.

  • LKC@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    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 {} \;

    • MonkderZweite@feddit.ch
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      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.

    • fubarx@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      JFC. That’s terminal.

      • Kecessa@sh.itjust.worksdeleted by creator
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        3 years ago

        Yes, you enter that in the terminal

        🙃

  • teegus@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Is there a command that will publish your browsing history?

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 years ago

    deleted by creator

  • MonkderZweite@feddit.ch
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Destructive for me or for others?

    • oriond@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      for the terminal’s operating system

  • oriond@lemmy.mlOP
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 years ago

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

    • barkingspiders@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 years ago

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

      • TheCaconym [any]@hexbear.net
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        3 years ago

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

  • Ruscal@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    3 years ago

    sudo chmod 000 -R / is very fun way of braking your system and is not widely known 🙂

    • Skull giver@popplesburger.hilciferous.nl
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      3 years ago

      deleted by creator

    • oriond@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 years ago

      What does this do? nobody can read any file? would sudo chmod 777 fix it at least to a usable system?

      • Ruscal@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        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.

Asklemmy@lemmy.ml

asklemmy@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !asklemmy@lemmy.ml

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?

  • !lemmy_support@lemmy.ml
  • !fediverse@lemmy.ml
  • !selfhosted@lemmy.world

Looking for a community?

  • Lemmyverse: community search
  • sub.rehab: maps old subreddits to fediverse options, marks official as such
  • !lemmy411@lemmy.ca: a community for finding communities

Icon by @Double_A@discuss.tchncs.de

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 464 users / day
  • 1.25K users / week
  • 4.35K users / month
  • 11.1K users / 6 months
  • 1 local subscriber
  • 55.4K subscribers
  • 9.06K Posts
  • 417K Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • mekhos@lemmy.ml
  • tmpod@lemmy.pt
  • OrangeSlice@lemmy.ml
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org