I am using Ubuntu with a case sensitive file system, and I have downloaded some zipped directories from Dropbox. I assume the zipped directories were created on a case insensitive file system, probably Windows. When I extract the files, I get multiple version of the directories and sub-directories in different cases. For example, after extracting I have "folder-a" and "Folder-A" which each have some of the contents that should be in the real "Folder-A". The two versions of the directory clearly need to be merged. Manually, this is tedious once subdirectories get deep.

I'm hoping to answer either one of the two questions:

  1. Is there an extraction command which can handle these case issues (I just used right-click->Extract Here)?


  1. Is there an easy way to rename and merged these directories recursively?
  • If the archive has directory names that are siblings and vary only in case, as the folder-a and Folder-A in you Q, then it did not come from a Windows system. In Windows you can access the one folder with both variations, and any other case-switched combination you can think of, but when the archive is created, zip or otherwise, only the name as created will be used. You should recheck whether or not they should be merged or not. I suspect they are somehow different, either in content or intended use. They might have been links, hard or sym, on the original system. – Gypsy Spellweaver Mar 2 '17 at 1:45

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.