This is a simple, educational reimplementation of the Unix cp (copy) command in c. It was created to better understand how file operations work at a low level, including system calls for reading and writing files.
⚠️ Disclaimer: This project is for learning purposes only and is not intended to replace the real cp command.
- Copies a file from source to destination
- Overwrites destination if it already exists
- Handles basic error cases (e.g., missing files, permissions)
- cd into the build folder.
cd build - Build using make
make
- Run the program
./CopyCat -h
GitHub: @jeydev