‹ BackHN Continuity

Thread

cp: -r or -R?

126 points · 110 comments · zdw

  1. ddosmax556 · · focus · HN ↗
    For those that don't know what 'copy as regular file' means, it means the copy command opens any file as though it was a regular file. If you have a FIFO queue sitting around it will read the content of the FIFO queue - if nothing writes to it, the command will hang. If you do cp -r /dev/zero foo, it will write zeroes into foo until the disk is full. -R otoh will copy a fifo queue as a fifo queue.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.