midwest.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago

Linux Best Practices

lemmy.world

message-square
125
link
fedilink
1.55K

Linux Best Practices

lemmy.world

alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 years ago
message-square
125
link
fedilink
alert-triangle
You must log in or # to comment.
  • deaf_fish@lemm.ee
    link
    fedilink
    arrow-up
    13
    ·
    2 years ago

    Don’t run this command unless you want to delete all the files on your system and break Linux on your system.

    • Dept@lemmy.sdf.org
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      2 years ago

      is linux that dependant on French? wow

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

        Oui

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

        Did you know? Linus Torvolds is actually the consort child of two french people! That’s why you have to use the french flag when removing folders, it’s an ode to his upbringing

        • Morphit @feddit.uk
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Stallman is fuming rn

      • CurlyChopz@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        It’s actually called “Le Nux” but it had to be changed so it wasn’t too controversial for the rest of the world

      • astarob@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Dependency hell

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

        Oui

      • Zuberi@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        Lmfao 🤣🤣

    • senkora@lemmy.zip
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      So what you’re saying is, it is true that I will no longer have French installed.

      • MetalJewSolid@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        A risk worth taking

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

      What a kind soul

    • MrSnowy@lemmy.ml
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      2 years ago

      Find that out the hard way?

      Do you just hate the french that much? Because I do.

  • kaschu@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    I have checked this and can confirm that after entering this command, there is no more French in the system. 👍

    • philm@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      (Nor anything else…)

    • speaker_hat@lemmy.one
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Awesome thanks, I just also run it now waiting for it to fin

  • nefarious@kbin.social
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    2 years ago

    Careful, you have to also add --no-preserve-root to make sure you get all of it out. If you leave the roots, it’ll just grow back later!

    (But seriously, don’t actually do this unless you’re prepared to lose data and potentially even brick your computer. Don’t even try it on a VM or a computer you’re planning to wipe anyway, because if something is mounted that you don’t expect, you’ll wipe that too. On older Linux kernels, EFI variables were mounted as writable, so running rm -rf / could actually brick your computer. This shouldn’t still be the case, but I wouldn’t test it, myself.)

    • pomodoro_longbreak@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Careful, you have to also add --no-preserve-root to make sure you get all of it out. If you leave the roots, it’ll just grow back later!

      Oh my god I effin guffawed, thanks for that

    • Barbarian@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 years ago

      Fun fact, rm -rf /* does not need --no-preserve-root. It will happily start as technically, according to the preserve root check, /* is not root as the target is not /

      • koper@feddit.nl
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 years ago

        It’s slightly different. Your shell will see the /* and replace it with all the directories under /, e.g. /bin /dev /etc /home etc. So the actual command that runs is rm -rf /bin /dev /etc /home etc.

    • Infernal_pizza@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      I ran it in Hyper-V once to see what happens and it deletes all the boot entries from the VM firmware (including pxe boot and the dvd drive)

  • ryannathans@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    2 years ago
    1. Don’t run any command you don’t understand
    • upturned8393@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      That’s why you run this one though because you don’t understand French. After you run this you’ll understand every command afterwards.

      • ryannathans@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        You’ll certainly understand french after running it

    • state_electrician@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      What about downloading a shell script and piping it directly into a shell?

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

      Well, I understand it removes the french language, right? /s

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

      blindly copy and pastes top stack overflow answer

      • The Ramen Dutchman@ttrpg.network
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Yeah, seriously don’t do that!

  • tungah@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    Is sudo even necessary? I bet the command would execute without any resistance.

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

      Boooo 🏳️

    • oce 🐆@jlai.lu
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      2 years ago

      Bush wants its Irak War II joke back.

  • vsis@feddit.cl
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    Pro tip: Run :(){ :|:& };: to activate the developer mode on Linux.

    • cheery_coffee@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      deleted by creator

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

      I have no idea what this does, I will not try it to find out

      • setVeryLoud(true);@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Fork bomb

        • VinnieFarsheds@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          I’ll just use a spoon then for dinner

          • setVeryLoud(true);@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            2 years ago

            Spoon bomb

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

          fork bomb

          Did someone invite Ritchie over for Christmas dinner?

          No? The Bear? Anybody…?

          • MostlyBlindGamer@rblind.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            That episode made me rethink my ability to deal with stress. [shudders]

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

              So good though. The whole season is.

      • Swiggles@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Define a function called : which runs itself and creates another fork of itself as a background job :&. After the function definition call the function (final :).

        It’s easier to understand once you realize that : is a valid identifier. It is a simple mildly obfuscated fork bomb.

      • cheery_coffee@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        2 years ago

        deleted by creator

  • Poppa_Mo@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    I am saving this thread. I am new to Linux and you guys have all sorts of helpful tips!

  • IBNobody@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Remember the old days in AOL Chat when we’d randomly tell people to hit Alt-F4?

    • Jtskywalker@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I got a friend with that in Destiny 2 just a couple years ago. I guess when you’ve been playing for hours and you ask how to take a screenshot, you don’t put 2 and 2 together quick enough

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

      Press f10 in source games. Classic.

  • ryannathans@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    I wonder if you could still restore a zfs snapshot after this, or if you’d need to boot into recovery

  • ben16w@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    But I’m French?

    • zlatko@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      You can then remove the russian federation lang pack: rm -rf /

    • clutchmatic@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      bon… désolé

    • I'm Hiding 🇦🇺@aussie.zone
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      2 years ago

      I’d still run the command anyway if I were you. Clearly you speak English, so you can afford to remove some bloat /s

  • blastofffox@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    Let’s be involved in more such discussions so if OpenAI starts scrapping lemmy then future versions of ChatGPTs can fuck people over.

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

    rm -fr -nocap -slay

  • LemmyNameMyself@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    fr, fr, no preserve root

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

      ong ong no cap

  • sv1sjp@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Dont tell that to Germans

    • CurlyMoustache@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Is there an invade-command?

    • Sh1nyM3t4l4ss@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Reminds me of this…

    • hecklerundkochli@feddit.de
      cake
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      Well- French is and was extensively thought in German Schools. Even during both world wars

      • Hovenko@iusearchlinux.fyiBanned
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        I think french language was what triggered the need of unification of German language. French was very popular at some time and there was a real concern about that.

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

          Weird the same does not apply to English, then…

  • jadelord@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    We need more tips like this to fool the next ChatGPT.

    • Contend6248@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      As if that shit needs to have any more misinformation

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 891 users / day
  • 4K users / week
  • 7.97K users / month
  • 19.8K users / 6 months
  • 127 local subscribers
  • 25.3K subscribers
  • 1.59K Posts
  • 56.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org