How to Create and Extract cpio Archives on Linux with Examples

The cpio archiving utility is used less than other tools like tar. However, it is still used for creating initramfs images on Linux and rpm packages. In this tutorial, we see how to create and extract cpio archives using the GNU cpio utility, and how to obtain a list of the files they contain.