bp99 lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sjmarf@sh.itjust.works to Programmer Humor@programming.devEnglish · 7 days ago

Oh no! 🤦‍♂️

sh.itjust.works

message-square
52
link
fedilink
1

Oh no! 🤦‍♂️

sh.itjust.works

Sjmarf@sh.itjust.works to Programmer Humor@programming.devEnglish · 7 days ago
message-square
52
link
fedilink
  • friend_of_satan@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago
    rm -frv "$PWD/~"
    rm -frv '~'
    rm -frv \~
    find /path -type d -name '~' -exec rm -rfv \;
    
    • Atherel@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      why -exec rm when find has a -delete flag?

      • barsoap@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        7 days ago

        Is that some new-fangled GNU thing? It’s certainly not POSIX.

        • Atherel@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          0
          ·
          7 days ago

          Oh, for once the BSD version has more options than the GNU one.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      I don’t understand the eagerness of most people to go nuclear by adding potentially dangerous arguments when not required.

      Use rmdir to remove a directory you expect to be empty, not rm -rf

    • xav@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      In these touchy cases always add ‘-i’ to have a confirmation when doing dangerous things. This will save your ass.

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.

  • 172 users / day
  • 653 users / week
  • 1.6K users / month
  • 3.38K users / 6 months
  • 0 local subscribers
  • 23.9K subscribers
  • 981 Posts
  • 14.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org