Wednesday, November 18, 2009

Linux CPIO command for Extracting files

$ cpio -idmv <Filename (No space after the redirection "<" sign)

The "-i" flag is for extract,
the "-d" flag creates directories ahead of time if necessary,
the "-m" flag is to preserve modification times on the restored files, and
the "-v" flag performs the whole operation in verbose mode in the end giving you the total extracted blocks.

No comments:

Post a Comment