Code:
user1@host ~/backup $ ls -al include.cpio
ls: cannot access include.cpio: No such file or directory
user1@host ~/backup $ find /usr/include | cpio -o > include.cpio
35933 blocks
user1@host ~/backup $ ls -al include.cpio
-rw-r--r--. 1 user1 user1 18397696 Jul 28 12:33 include.cpio
user1@host ~/backup $ mkdir cpio
Now I extract:
Code:
user1@host ~/backup $ cd cpio
# Extracting cpio file.
user1@host ~/backup/cpio $ cpio -i < ~/backup/include.cpio
# a bunch of lines were printed out.... e.g.
... ...
cpio: /usr/include/gssapi.h not created: newer or same age version exists
cpio: /usr/include/gmpxx.h not created: newer or same age version exists
cpio: /usr/include/cursslk.h not created: newer or same age version exists
35933 blocks
~/backup/cpio $ ls *.*
ls: cannot access *.*: No such file or directory
I am suppose to get those files extracted in
same folder where the extraction command was executed.
But it is trying to extract to original folder, /usr/include.
Why am I not able to extract the cpio file to current folder?