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
Post a Comment