The Crib for cpio(1)
1. Create Archive
Example: put all the files inside the current directory into the new archive
ls | cpio -o > ar01.cpio
Example: create an archive from the file containing the names of files to put into the archive
cat blst | cpio -i > bu2.cpio
2. List Archive Contents
Example: get file names from the previously created archive
cat ar01.cpio | cpio -t
3. Extract Files from Archive
Example: extract all the files from the previously created archive
cat ar01.cpio | cpio -i
Example: extract only one file with the absolute path from the archive; with verbose output
cat bu2.cpio | cpio -i --insecure -v /tmp/cpio/one
Комментариев нет:
Отправить комментарий