[Ilugc] How to use cpio command
- From: psmanohar@xxxxxxxxxxxxxxx (P.S. Manohar)
- Date: Mon, 8 Jul 2002 10:51:23 +0530
I downloaded oracle 9i for linux, which is in cpio format. I initially had
problems in extracting those. Later from Basker's solution i got those
files extracted. But still i'm having some basic doubts on cpio formats and
its difference with tar.
Regards
Manohar
-----Original Message-----
From: pandarinathan raman [mailto:raamanp@xxxxxxxxxxx]
Sent: Monday, July 08, 2002 10:43 AM
To: P BASKER; P.S. Manohar
Cc: ilugc@xxxxxxxxxxxxxxxxxx
Subject: Re: [Ilugc] How to use cpio command
--- P BASKER <basker@xxxxxxxxxxxx> wrote: >
Try
cpio --extract --make-directories < file.cpio
Anyone knows where cpio is generally used instead of
tar? (Apart from
rpm2cpio)?
P.Basker
CPIO is pretty powerful when combined with find
like
find / -mtime -1 -print|cpio -o>/dev/fd0
It is very useful for incremental backup.With sed or
awk we can do backup effectively in a large setup.
Also it can continue on another device when full
i.e multiple floppies or tapes, even combination of
them.
It can accept files to be copied from stdin.
Thus if we create a file say f1 containing filenames
found under different directories, using cpio we can
create
an archive of all these files.
cpio -o >archivefile <f1
Raman
________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
visit
http://in.autos.yahoo.com
Other related posts: