Saik0-Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Lanky_Pomegranate530@midwest.social to linuxmemes@lemmy.world ·
edit-2
8 months ago

Seriously this is a joke. Do NOT try this

midwest.social

external-link
message-square
58
fedilink
272
external-link

Seriously this is a joke. Do NOT try this

midwest.social

Lanky_Pomegranate530@midwest.social to linuxmemes@lemmy.world ·
edit-2
8 months ago
message-square
58
fedilink
  • bandwidthcrisis@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    8 months ago

    Never create a file named “-rf *” unless you really plan on keeping it.

    • dwt@feddit.org
      link
      fedilink
      Deutsch
      arrow-up
      17
      ·
      edit-2
      8 months ago
      rm ./—rf\ \*
      

      Am I missing something?

      • bandwidthcrisis@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        8 months ago

        I’m not sure that you belong in this thread :)

      • one_knight_scripting@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        8 months ago

        I’m not going to try it but… rm “./-rf *” would do the same? rm “./-rf \*” maybe?

        • dwt@feddit.org
          link
          fedilink
          Deutsch
          arrow-up
          3
          ·
          8 months ago

          Couldn’t get single quotes to type on my phone, but best to always use them for problems like that, to completely get rid of shell interference.

          • one_knight_scripting@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            8 months ago

            I always forget about the single quotes.

        • dwt@feddit.org
          link
          fedilink
          Deutsch
          arrow-up
          1
          ·
          8 months ago

          If you do want to try, just start a docker container and try inside there. That should negate all risk

    • bitchkat@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 months ago

      rm ./-rf

    • RecluseRamble@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      8 months ago

      I’ve been using Linux as my main driver for a couple of years now but I didn’t know the list of reserved file name characters is so short.

      I didn’t believe ‘*’ is allowed. That alone is so error-prone, it’s insane. Backslash is allowed too - how do you escape that? Sometimes I think they giggled while writing the specs.

      • Revan343@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        8 months ago

        Backslash is allowed too - how do you escape that?

        It’s backslashes all the way down

      • mexicancartel@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        Just use double backslashes for each backslash

    • Drew@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      if you use fish you can tab-cycle tour way to the file

linuxmemes@lemmy.world

linuxmemes@lemmy.world

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]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

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

  • 768 users / day
  • 4.66K users / week
  • 9.56K users / month
  • 19K users / 6 months
  • 1 local subscriber
  • 24.9K subscribers
  • 1.62K Posts
  • 90.7K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org