• Bizzle@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 年前

    Well if you put it in like that it would give an error. But if you used the right slash you can kiss your home folder goodbye probably. Maybe rm ./~ would work

    • Peruvian_Skies@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      1 年前

      ~ resolves to your home folder only if it’s at the beginning of a path. /~ isn’t the same as ~. Go ahead and test it with something other than rm if you don’t believe me (this is the Internet, I could be lying).