Multithreaded File Copy Command
Design a Linux `cp` command that copies a file from source to destination using only `pread()` and `pwrite()` system calls. Your implementation must support multithreading, data integrity verification, resumable transfers, proper error handling, and idempotency on retries.
Asked at:
Rubrik
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late March, 2026
Rubrik
Senior
Design linux "cp" command to copy a file from source to destination. Ensure data transfer resumability, data integrity and multithreading support. Assume that only pread() and pwrite() system calls are available. Appropriate error codes must be returned to the user and idempotency must be maintained in case the command is retried by the user.
Your account is free and you can post anonymously if you choose.