Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How is it possible that cp didn't copy all files from a huge directory?

I did cp on a large directory with 5000 files. I checked contents with diff and it was not matching! How is this possible?

I ran cp -rv devholidayge/ holiday/

share|improve this question
Are you sure it completed with a 0 return code and no errors? What is the exact command you invoked? – zmode Oct 16 '12 at 10:12
Does the directory have subdirectories under it? If yes, then cp by itself will not do a recursive copy unless you specify the -R flag. – M K Oct 16 '12 at 10:15
Did you run out of space on the target? – pjc50 Oct 16 '12 at 10:20
@MK yes I used -r – Sandro Dzneladze Oct 16 '12 at 10:34
What do the files that didn't copy have in common (if anything)? Were they all over a certain size? Were they all a certain type? – ChrisF Oct 16 '12 at 10:36

Your Answer


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

Browse other questions tagged or ask your own question.