The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
fool@programming.dev to Programmer Humor@programming.dev · 2 years ago

of=/dev/sda

programming.dev

message-square
33
link
fedilink
429

of=/dev/sda

programming.dev

fool@programming.dev to Programmer Humor@programming.dev · 2 years ago
message-square
33
link
fedilink
alert-triangle
You must log in or # to comment.
  • mycodesucks@lemmy.world
    link
    fedilink
    arrow-up
    124
    arrow-down
    1
    ·
    2 years ago

    Obligatory XKCD

    • subtext@lemmy.world
      link
      fedilink
      arrow-up
      30
      ·
      2 years ago

      https://explainxkcd.com/1084

    • Gsus4@mander.xyz
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      need to be more creative with aliasing than “ls”

  • vvv@programming.dev
    link
    fedilink
    arrow-up
    55
    ·
    2 years ago

    … but cd is a built-in

    • fool@programming.devOP
      link
      fedilink
      arrow-up
      34
      ·
      2 years ago

      -1 accuracy point ( ◞ ﹏ ◟)

      linux 4.5-rc5 had efivarfs fixed to prevent “rm -rf /” bricking uefi motherboards – so maybe someone can try it out? :]

      • HighlyRegardedArtist@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        This is one of the reasons I’ve disabled uefi by default with the noefi kernel parameter, the other reason being the LogoFAIL exploit: https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface#Disable_UEFI_variable_access

    • sik0fewl@lemmy.ca
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      It would be pretty useless if cd was a child process that changed its own directory, only to return to bash and be back where you started.

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

    No problem, just tab complete your way around the filesystem.

    • Ziglin (it/they)@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      What filesystem?

  • nxn@lemmy.ml
    link
    fedilink
    English
    arrow-up
    26
    ·
    edit-2
    2 years ago

    deleted by creator

  • Scoopta@programming.dev
    link
    fedilink
    arrow-up
    25
    ·
    2 years ago

    I am immune to /dev/sda for I only have nvme

    • redditReallySucks@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      24
      ·
      2 years ago

      I love the nvme partition naming. Looking at you nvme1n1p3

      • ilikecoffee@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years ago

        /dev/nvme1s²2s²2p⁶3s²3p⁶4s²3d¹⁰4p²

    • nxn@lemmy.ml
      link
      fedilink
      English
      arrow-up
      9
      ·
      edit-2
      2 years ago

      deleted by creator

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

        Eh? Idk if I agree. My original comment was entirely a joke based on the fact that the literal argument of=/dev/sda has no affect on my system but to address your actual point. I personally don’t find nvme naming any more confusing than SCSI. /dev/nvme0n1 is only one char away from /dev/nvme1n1 just like sda vs sdb. Additionally if you understand how the kernel comes up with those names they make a lot of sense. The first number is the controller, the second is the namespace or drive attached to that controller, the 3rd if present is the partition on the given drive. It is entirely possible to have a controller with more than one namespace. That aside aside…I think there is a genuine benefit to be argued for having USB drives, which are SCSI and fall into sdX naming separate from system drives as I dd far more USB media than system media. Making it a lot harder to screw my system up when trying to poke a flash drive.

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

      That might make it even more dangerous, because you get used to flash to usb sticks on “/dev/sda”. And when you then use a device with a built-in sata drive, you might forget checking in a hurry.

      Happened to me a once or twice. I am now only using bmap tools for this.

  • MonkderVierte@lemmy.ml
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    2 years ago

    echo $PATH

    And alias to be sure.

    • Ricky Rigatoni@lemm.ee
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      bash: echo: command not found

      bash: alias: command not found

      • Faresh@lemmy.ml
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        2 years ago

        echo and alias are both shell commands. If the shell is running (which it obviously still is), those commands should still work, as it does not involve reading data from disk, but from memory.

        Edit: I just noticed the picture said cd was not found, which is also a shell built-in. So, I don’t know.

        • Joe Cool@lemmy.ml
          link
          fedilink
          arrow-up
          5
          ·
          2 years ago

          Why would somebody lie on the internet?

        • dko1905@discuss.tchncs.de
          link
          fedilink
          arrow-up
          5
          ·
          2 years ago

          Just tested it in a container. The original screenshot is wrong:

          screenshot of them being wrong

      • MonkderVierte@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        (╯°□°)╯︵ ┻━┻

        Switch your calculator with a computer. Try again.

  • bacon_pdp@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 years ago

    deleted by creator

  • 0x0@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Empty $PATH.

  • teft@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    You should all just use an immutable distro. Problemo solved-o.

    /s

  • Aniki 🌱🌿@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    2 years ago

    This isn’t programming, just someone who sucks at bash.

    • zero_spelled_with_an_ecks@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      How else are you going to open your files in nano to do the programming on the prod server?

      • Aniki 🌱🌿@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        2 years ago

        what’s a nano?

        • Appoxo@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          The beginner (and better) version of vim?

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.

  • 353 users / day
  • 2.15K users / week
  • 4.16K users / month
  • 9.46K users / 6 months
  • 1 local subscriber
  • 31.1K subscribers
  • 1.61K Posts
  • 28.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org