• Bizzle@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 months ago

    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
      8
      ·
      4 months ago

      ~ 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).