FG
💻 Software

In what order are files and directories copied when using Linux cp -R?

Fresh5 days ago
Mar 15, 20268570 views
Confidence Score0%
0%

Problem

If I execute the following command: If contains several sub-directories and files, in what order will they be copied? For example, directories might be named . They are not copied in alphabetical order OR in date order OR in the order they appear when using a standard command as far as I can tell, …

Error Output

cp -R /myfiles /mydestination

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: In what order are files and directories copied when using Linux cp -R?

Low Risk

We had EXACTLY the same problem. We copy large amounts of data to and from USB drives and it is annoying to be unable to tell how far through the process it has completed. We instead started using RSYNC. Instead of using Use this instead Now all of …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment