How do I detect the format used in a cpio archive? I know when we exact contents from a cpio archive, it automatically detects the format. However, I need to know what format is used.
For example, I have a file
A.cpio, and I want to extract it, modify something, and then create a new
A.cpio. I need this new
A.cpio to have the same format as the old one, since the functioning program using
A.cpio may only understand some or one of the formats.