Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Oh no! 🤦‍♂️

Oh no! 🤦‍♂️

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
46 Posts 39 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F [email protected]

    rm -rf "~" may work?

    U This user is from outside of this forum
    U This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #34

    In case you are just testing it out, don't use -rf
    Your ~ directory is most probably empty, so use rm -d instead, to prevent all footguns in case you put the wrong character in the end.

           -d, --dir
                  remove empty directories
    

    I feel safe doing rm -d /.
    I feel safe doing sudo rm -d /.

    Because it won't delete anything that has a file in it.

    1 Reply Last reply
    0
    • S [email protected]

      OK I'll bite, how do you get rid of a literal ~ directory?

      captain_aggravated@sh.itjust.worksC This user is from outside of this forum
      captain_aggravated@sh.itjust.worksC This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #35

      Using Nautilus or Dolphin.

      S 1 Reply Last reply
      2
      • sjmarf@sh.itjust.worksS [email protected]
        This post did not contain any content.
        captain_aggravated@sh.itjust.worksC This user is from outside of this forum
        captain_aggravated@sh.itjust.worksC This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #36

        Stopped thinking

        W 1 Reply Last reply
        15
        • x00z@lemmy.worldX [email protected]

          At least we know vibe coders will eventually destroy themselves.

          W This user is from outside of this forum
          W This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #37

          just wait until they start vibe coding on their brain implant

          1 Reply Last reply
          3
          • captain_aggravated@sh.itjust.worksC [email protected]

            Stopped thinking

            W This user is from outside of this forum
            W This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #38

            Never started

            1 Reply Last reply
            3
            • scrubbles@poptalk.scrubbles.techS [email protected]

              We call this a whoopsie daisy.

              zarkanian@sh.itjust.worksZ This user is from outside of this forum
              zarkanian@sh.itjust.worksZ This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #39

              Whoopsie daisy-cutter.

              1 Reply Last reply
              0
              • S [email protected]

                OK I'll bite, how do you get rid of a literal ~ directory?

                zarkanian@sh.itjust.worksZ This user is from outside of this forum
                zarkanian@sh.itjust.worksZ This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #40

                Just give rm the entire path or a relative path like ./~

                1 Reply Last reply
                3
                • sjmarf@sh.itjust.worksS [email protected]
                  This post did not contain any content.
                  N This user is from outside of this forum
                  N This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #41

                  I think it should've started with "stopped thinking"

                  1 Reply Last reply
                  8
                  • S [email protected]

                    OK I'll bite, how do you get rid of a literal ~ directory?

                    J This user is from outside of this forum
                    J This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #42

                    A method not yet mentioned is by inode, (I've accidentally created filenames I didn't know how to escape at the time like -- or other command line flags/special characters)

                    ls -li

                    Once you get the inode

                    find . -type f -inum $inode -delete

                    1 Reply Last reply
                    2
                    • captain_aggravated@sh.itjust.worksC [email protected]

                      Using Nautilus or Dolphin.

                      S This user is from outside of this forum
                      S This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #43

                      True if these are installed, but if I'm on a server's command line they probably aren't.

                      1 Reply Last reply
                      0
                      • T [email protected]

                        I did this once (for real, but without AI assistance)

                        sobriquet@aussie.zoneS This user is from outside of this forum
                        sobriquet@aussie.zoneS This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #44

                        I fairly recently tried to do a rm match* but accidentally put a space between the match and the *…

                        1 Reply Last reply
                        0
                        • P [email protected]

                          No, but single quotes will.

                          F This user is from outside of this forum
                          F This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #45

                          huh, I almost removed my entire home directory

                          1 Reply Last reply
                          1
                          • T [email protected]

                            I did this once (for real, but without AI assistance)

                            G This user is from outside of this forum
                            G This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #46

                            I did it recently. Its like watching your computer commit seppuku.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups