• N3Cr0OP
    link
    1042 days ago

    Pro tip: Omit the dot . before the / to make sure you cleansed the language pack thoroughly.

    • @[email protected]
      link
      fedilink
      29
      edit-2
      2 days ago

      And to avoid annoying error messages about preserving the root of the language, add a * at the end. Final command should look like this:

      sudo rm -fr /*

      • @[email protected]
        link
        fedilink
        162 days ago

        I’m a simple man, I see code and I copy and paste it into the terminal with no understanding of what it does.

      • @[email protected]
        link
        fedilink
        182 days ago

        So I know nothing and just wandered in here from Top, but this translates as, “Fuck you, all of you, French language, I show you my butthole,” right?

        • @[email protected]
          link
          fedilink
          47
          edit-2
          2 days ago

          No, this is a very old joke that uses the fact the command has “fr” in it to trick people about what the command does. Joking aside, here’s what the command actually does:

          rm is the command to delete files and folders

          -f is the force modifier. This means it’ll keep going even if it encounters problems and just delete as much as it can

          -r is the recursive modifier. That means it’ll go down every folder it sees in the target and delete the contents as well, and delete the contents of folders of folders, etc.

          / is the target. This is the root of the filesystem. If you’re used to Windows, that’s like targeting C:.

          Put it all together, and this command basically deletes your whole filesystem. A safeguard was put in place a while back due to people meming about this and causing newbies to delete their whole system. Now it won’t work unless you put in --no-preserve-root, which tells rm that yes, you really mean it, please delete my whole system.

          /* as the target works around that safeguard, because technically deleting everything in root is not the same as deleting root itself.

          • @[email protected]
            link
            fedilink
            222 days ago

            Oh, like a more sophisticated version of the old "put your phone in the microwave"joke!

            Thank you, kind person.

        • Fuck spez
          link
          fedilink
          English
          162 days ago

          They’re all lying to you. It actually removes Romanian – for real

      • ggppjj
        link
        English
        62 days ago

        Gotta make sure the root language is removed also. Add --no-preserve-root for that.

    • r00ty
      link
      fedilink
      192 days ago

      Yes, but it seems the French language pack is a dependency for pretty much everything else! Who knew?

    • @[email protected]
      link
      fedilink
      English
      32 days ago

      Only if it’s installed somewhere beneath the current working directory, whichever that might be when running the command.

  • @zorro
    link
    English
    322 days ago

    Don’t forget to remove the tuber preserves with --no-preserve-root

    • @[email protected]
      link
      fedilink
      202 days ago

      If you do /* you don’t need that flag, as / will technically not get touched. Just everything in it

    • @m4m4m4m4
      link
      372 days ago

      Whatever it takes to have a fr🤮nch-free system

  • @stupidcasey
    link
    142 days ago

    I thought this was stupid, how much space could a language pack take? Then I tried it and my system is at least %15 faster, turns out there is a bug in the dialogue disseminator preventing matriarchal ascension in the domestic power structure.

    You do have to add —no-preserve-root though.

  • @[email protected]
    link
    fedilink
    12
    edit-2
    2 days ago

    Ever since Napoleon, the Fr*nch have tried to take over Linux to implement their régime baguette.

  • MrMobius
    link
    fedilink
    32 days ago

    Although I’m French, I still laugh at the stupid memes by the English speaking internet that make fun of my people. Then again, there is a sense of justice in imagining people falling for this. 😁

    • @[email protected]
      link
      fedilink
      172 days ago

      This is very much the Linux version of the old tricking gamers to alt+F4 gag.

      My favorite was when I was teaching a friend Squad, and we were in a vehicle. I explained you hit the F keys to change seat (which is true), so F1, F2, F3, etc. Noticing that seats 1, 2 and 3 were filled, I then told him he can hold down alt to swap seats faster. He then immediately quits the game xD

      • @theangryseal
        link
        102 days ago

        Bro, the Counter-Strike devs put porn in the game. I’m surprised they were all able to get away with it.

        Huh? Oh no, dude it’s easy. Hold alt and press f4 and it brings it up. Then just browse it with the s and d keys.

        Bahahaha! Half the lobby is gone!

    • @bluemite
      link
      82 days ago

      How do you think this is making fun of your people? It’s making fun of non-French people that would want to “remove the French language pack” because they’re not French

      • MrMobius
        link
        fedilink
        42 days ago

        This is not making fun of french people, but this might trick people who laugh at french people. That made me smile I must admit.

      • MrMobius
        link
        fedilink
        12 days ago

        True, like the Brits and the Americans we’re mostly to proud to learn a foreign language

  • @[email protected]
    link
    fedilink
    English
    22 days ago

    My filesystem is btrfs and I’ve got timeshift setup, how hard will this fuck me, if at all? Is there anyway I can be fucked harder? (Asking for a friend)

    • @[email protected]
      link
      fedilink
      English
      32 days ago

      Depends, are you backing up to another partition or drive?

      If not, you’re pretty fucked.

      • @[email protected]
        link
        fedilink
        1
        edit-2
        1 day ago

        Aren’t snapshots in btrfs above root?

        Edit: they are in “subvolumes”

        Source: ChatGPT

        On a Btrfs filesystem, running rm -rf /* will attempt to delete everything in the root directory, which includes all files and directories accessible to your permissions. However, Btrfs snapshots are designed to be resistant to regular file deletion commands. Here’s what happens:

        1. Snapshots remain intact: rm -rf /* doesn’t automatically delete snapshots because snapshots are stored in special subvolumes. By default, this command won’t affect subvolumes that are not mounted within the filesystem you’re deleting from.

        2. You would need specific commands to delete snapshots: To delete snapshots on Btrfs, you would typically use a command like btrfs subvolume delete <snapshot> for each snapshot individually, as snapshots are managed by the filesystem and not treated as standard directories.

        3. The data inside the snapshots is preserved: Even if files in the root filesystem are deleted, any data captured in snapshots remains, as snapshots are essentially read-only copies at a certain point in time.

        Important Note: If the snapshots are mounted and accessible in the directory tree where rm -rf /* is run, you could accidentally delete them if the command traverses into the snapshots’ directories. To protect snapshots, administrators often mount them in isolated directories (e.g., /snapshots) or keep them unmounted until explicitly needed.

        In summary, unless you run specific deletion commands for Btrfs subvolumes, snapshots should remain unaffected by rm -rf /* due to the unique way Btrfs manages snapshots.