Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

on Mac, you know there is no 'merge files' when you command+c/command+v some folder on another one, it actually replaces it. I'm simply wondering on what UNIX is this based? Because correct me if I'm wrong, but "cp - R" DOES merge files, no? And that's what I'm doing via the Finder, copying some files and folders...

thanks!

share|improve this question
add comment

1 Answer

GUI functionality generally doesn't use console commands. The Finder presumably employs some Cocoa interface; the cp utility normally uses open/read/write (i.e., it reads the contents of the file into memory and creates another file using these contents elsewhere) as there is no Unix system call for copying files.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.