ubuntu - Copy a certain file from a CPIO file to a different directory -


i trying copy single file .cpio file, different directory rather tree inside it. trully sure possible, teacher did it.

i have tried this:

# cpio -i -f backup.cpio sub1/sub2/example.php 

but doesn't extract file example want extracted. tried adding third parameter doesn't work. suggestions? oh, , i'm running ubuntu.

one way extract single file stdout , redirect file of choice:

cpio -i --to-stdout sub1/sub2/example.php < backup.cpio > new_filename.php 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -