lemmy.co.nz
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
JPDev@programming.dev to Programmer Humor@programming.dev · 10 months ago

Always try sudo

programming.dev

message-square
98
fedilink
1.08K

Always try sudo

programming.dev

JPDev@programming.dev to Programmer Humor@programming.dev · 10 months ago
message-square
98
fedilink
  • Technus@lemmy.zip
    link
    fedilink
    arrow-up
    100
    ·
    10 months ago
    sudo rm /heart/arteries/**/clot
    
    • AmbiguousProps@lemmy.today
      link
      fedilink
      English
      arrow-up
      90
      ·
      10 months ago

      Very important to not hit enter before clot.

      • Technus@lemmy.zip
        link
        fedilink
        arrow-up
        37
        ·
        10 months ago

        That’s why you have backups.

        • Trail@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          Or btrfs snapshots.

    • hperrin@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      10 months ago

      Isn’t it /dev/heart?

      • Technus@lemmy.zip
        link
        fedilink
        arrow-up
        21
        ·
        10 months ago

        I feel like if your body follows the Unix filesystem structure, you have a real problem.

        • KISSmyOS@feddit.org
          link
          fedilink
          arrow-up
          17
          ·
          10 months ago

          Can I get one of them immutable bodies?

          • MaggiWuerze@feddit.org
            link
            fedilink
            arrow-up
            8
            ·
            10 months ago

            You are now a cygote

          • katy ✨@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            6
            ·
            10 months ago

            you wish to assimilate into the borg?

    • BleatingZombie@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      10 months ago

      Please forgive my ignorance. What does ** do?

      • gaylord_fartmaster@lemmy.world
        link
        fedilink
        arrow-up
        23
        ·
        10 months ago

        Acts as a wildcard for any directories that exist between arteries and clot.

        • KISSmyOS@feddit.org
          link
          fedilink
          arrow-up
          6
          ·
          10 months ago

          TIL!

        • MonkderDritte@feddit.de
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          10 months ago

          But only in Bash and if settings match. It’s only reliable on your own shell, don’t use it in scripts.

      • Technus@lemmy.zip
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        10 months ago

        It’s a glob pattern (edit: tried to find a source that actually showed ** in use).

      • mosiacmango@lemm.ee
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        10 months ago

        Had to look this up as well. Its not rm specific:

        * is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names. ** is a recursive wildcard that can only be used with paths, not file names.

        More here.

      • mosiacmango@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        10 months ago

        deleted by creator

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: [email protected]

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.

  • 2.16K users / day
  • 5.1K users / week
  • 9.3K users / month
  • 17.9K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 1.38K Posts
  • 48.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org