Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Un cpioing a file in linux Redhat.9.0 1

Status
Not open for further replies.

galger

MIS
Jan 16, 2002
79
US

How do I extract ?
==========
cpio -itvs < filename.cpio
==========
This command reads the cpio.file and print what is in the cpio file..

----
Cannot figure out what to put in the args to EXTRACT this file.. tried different combinations.. nothing seems to work.
Anyone..

 
Did you try reading the man page? I did and it says to omit the "t" option.
 
Ahh RTFM huh.. I glanced at it.. thanks I will read it tomorrow.

thanks for the info!!

galger.

 

cpio -ivs < phaxe13.cpio

cpio: thxx1/rxxo2/sol_3224: No such file or directory
thxx1/rxxo2/sol_3224

~ creates directory but, does not create file ~




 
Can you elaborate, please? Which directory(ies) does it create? Do you have permissions on these directories?
 
it creates all the main directories but does not create the files underneath.. Im doing it as root.

prompts:
cpio: thxx1/rxxo2/sol_3224: No such file or directory
thxx1/rxxo2/sol_3224



 
Probably the most common flag usage of cpio is

cpio -icdumv < file.cpio

The c says expect ascii headers, d is to create directories, the u is unconditional overwrite, m is retain modification and the v is verbose.

You do have to watch out for archives created on other systems; for example see
Tony Lawrence
Linux/Unix/Mac OS X Resources
 
uncpioing a file
success for redhat9
cat cpiofile.cpio | cpio -idvm

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top