‹ BackHN Continuity

Thread

cp: -r or -R?

125 points · 107 comments · zdw

  1. drhagen · · focus · HN ↗
    It always seemed like the recursive flag of cp was an implementation detail leaking into the UI. Like, I get that copying a file requires creating more than one inode, but...so? Eventually, graphical OSes agree with me—copy/paste works the same on folders as it does on files.
    1. alwillis · · focus · HN ↗
      ditto is an option on macOS for copying files and directories [1].

      [1]: <a href="https:&#x2F;&#x2F;keith.github.io&#x2F;xcode-man-pages&#x2F;ditto.1.html" rel="nofollow">https:&#x2F;&#x2F;keith.github.io&#x2F;xcode-man-pages&#x2F;ditto.1.html

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.