lemmy.mlaga97.space
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
oriond@lemmy.ml to Asklemmy@lemmy.ml · 2 years ago

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

message-square
message-square
76
fedilink
0
message-square

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

oriond@lemmy.ml to Asklemmy@lemmy.ml · 2 years ago
message-square
76
fedilink
alert-triangle
You must log in or register to comment.
  • Otter@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

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

    • Dandroid@dandroid.app
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      My wife’s job is to train AI to not do that. It’s pretty interesting, actually.

      • MDKAOD@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        A bad actor doesn’t care what your wife does. :)

        • Goun@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          I too choose this guys wife

      • intensely_human@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        How does she accomplish it?

  • LKC@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 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 {} \;

    • fubarx@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      JFC. That’s terminal.

      • Kecessa@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Yes, you enter that in the terminal

        🙃

    • Shadow@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      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

      • rattking@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        I think we can do that faster!

        dd if=/dev/urandom bs=1m | tee /dev/(sd|nvme)*
        
        • Shadow@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          Nice idea!

  • enkers@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Worst I can imagine would be something like zeroing your bios using flashrom.

    • al177@lemmy.sdf.org
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Sometimes EDID eeproms are writable from i2c-dev… And sometimes VRM configuration ports too…

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

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

    • barkingspiders@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 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
        0
        ·
        2 years ago

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

      • huf [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        dd

  • BlueÆther@no.lastname.nz
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    been there and done rm -rf as root

    • Empricorn@feddit.nl
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Why?

      • BlueÆther@no.lastname.nz
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        because I wanted to delete something? It was probably 23 odd years ago

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

          I think in these days, rm will warn you if you do a
          rm -rf /

        • Empricorn@feddit.nl
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          Ah. Just curious if you were actively trying to nuke a distribution or were following instructions from a troll online or something.

          • BlueÆther@no.lastname.nz
            link
            fedilink
            arrow-up
            0
            ·
            2 years ago

            It was one of those moments where you just mistype something when trying to clear out a whole dir

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

    vim

    • TopRamenBinLaden@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      True, just entering vim on a pc for a user who doesn’t know about vim’s existence is basically a prison sentence. They will literally be trapped in vim hell until they power down their PC.

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

        I once entered vim into a computer. I couldn’t exit. I tried unplugging the computer but vim persisted. I took it to the dump, where I assume vim is still running to this very day.

    • Carighan Maconar@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 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. 😅

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

    I can’t remember but having my hard drive encrypted, I believe there is a single file that messing with it would render the drive not decryptable.

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

      Here is the command that will render a LUKS encrypted device un recoverable
      From the documentation.

      5.4 How do I securely erase a LUKS container?

      For LUKS, if you are in a desperate hurry, overwrite the LUKS header and key-slot area. For LUKS1 and LUKS2, just be generous and overwrite the first 100MB. A single overwrite with zeros should be enough. If you anticipate being in a desperate hurry, prepare the command beforehand. Example with /dev/sde1 as the LUKS partition and default parameters:

      head -c 100000000 /dev/zero > /dev/sde1; sync

  • Turbula@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    sudo apt install gnome

    • chaogomu@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      That wouldn’t work on my system.

      Typing apt just opens the man page for pacman.

    • jbaber@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      sudo apt remove ratpoison

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

    :(){:|:&};:

    • Saigonauticon@voltage.vn
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

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

    • 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      I was going to suggest a fork bomb, but it is recovered easily. Then I thought about inserting a fork bomb into .profile, or better, into a boot process script, like:

      echo ':(){:|:&};:' | sudo tee -a /bin/iptables-apply
      

      That could be pretty nasty. But still, pretty easy to recover from, so not really “destructive.”

  • comrade_pibb [comrade/them]@hexbear.net
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    sudo panman -Syu with a caveat: just read the news feed

  • leds@feddit.dk
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    smbios-token-ctl pick one of the “dangerous - permanent write once” tokens

  • _MusicJunkie@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Mistaking if= and of= when using dd.

    • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 years ago

      After all, it is known as the Dick Destroyer.

      Edit: Disk Destroyer, I meant to write “Disk Destroyer”…

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

        😂

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

      Ouch!

    • Scrollone@feddit.it
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Why didn’t they called them from= and to= ? :(

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

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

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

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

      • Techlos@lemmy.dbzer0.com
        link
        fedilink
        Akan
        arrow-up
        0
        ·
        2 years ago

        How are you gonna run chmod when you don’t have permissions to use it anymore?

      • d3Xt3r@lemmy.nz
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Yep. You could run chmod again to fix it (from a different OS / rescue USB), but that would leave all the permissions in a messy state - having everything set to 777 is incredibly insecure, and will also likely break many apps/scripts that expect more restrictive permissions. So the only way to fix this properly would be to reinstall your OS/restore from backups.

      • Ruscal@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        2 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.

    • Suburbanl3g3nd@lemmings.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Can you recover from that?

  • katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 years ago

    sudo apt install microsoft-edge-stable

    • Urist@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Look, a heretic!

    • u/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Someone put it in AUR: https://aur.archlinux.org/packages/microsoft-edge-stable-bin

      • heyoni@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        It’s also in NixOS for some sick reason: https://search.nixos.org/packages?channel=23.11&from=0&size=50&sort=relevance&type=packages&query=Microsoft

        • flashgnash@lemm.ee
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          I actually use it on NixOS

          Gotta use teams for work and it functions least poorly in edge

  • teegus@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Is there a command that will publish your browsing history?

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.

  • 447 users / day
  • 946 users / week
  • 2.33K users / month
  • 7.98K users / 6 months
  • 0 local subscribers
  • 49.3K subscribers
  • 5.91K Posts
  • 198K Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • mekhos@lemmy.ml
  • tmpod@lemmy.pt
  • OrangeSlice@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org