Hi,
cpio - copy files to and from archives
1. to create .cpio archive file
$ ls
file1.txt file2.txt file3.txt
$ ls | cpio -ov > /home/ilugc/Desktop/sample.cpio
2. to extract a given .cpio file, use cpio -iv
$ mkdir sample
$ cd sample
$ cpio -idv < /home/ilugc/sample.cpio
3. to view the content of .tar file
$ cpio -it -F ilugc.tar
4. to extract a tar file using cpio command
$ cpio -idv -F ilugc.tar
5. the find command would list all files and subdirectories of the
current directory, and pipe them to the cpio command, which
copies those files to the 'ilugc' user account
$ find . -print | cpio -dumpv /home/users/ilugc
regards,
T.Dhanasekar
_____________________________________
ILUGC List: //www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/