Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Is it possible to create an archive in whatever format containing files with identical name located in the same folder? If yes, how?

I need this for some testing purposes. The target OS is Windows. Thank you.

share|improve this question

closed as not constructive by Tog, ChrisF, Dennis, Dave M, 8088 Jan 15 '13 at 17:06

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

How can you have have 2 with identical names in the same folder? – parkydr Jan 15 '13 at 9:03
Or in English: How have can you have 2 files with identical names in the same folder? – parkydr Jan 15 '13 at 9:12
This is my question :) In other words, can someone guarantee that it is never possible? – user835103 Jan 15 '13 at 9:32
what are you testing? – humanityANDpeace Jan 15 '13 at 10:18
up vote 1 down vote accepted

At least tar and cpio should be able to handle that. GNU tar won't care if you add a file twice, for example:

tar cf foo.tar bar baz bar

That should create a tar archive containing the file 'bar' twice.

share|improve this answer

If a file is appended to a tar archive, at least with GNU tar, that already exists then tar does some weirdness which boils down to when you extract/delete, only the last appended copy is extracted / deleted.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .