cpio

find . -depth  -print  |cpio -ov >/re.cpio
find . -depth  -print |cpio -ov|gzip >/re.cpio.gz

uncompress rc.cpio to current path

    #cpio -iv</re.cpio
or
    #gunzip /re.cpio.gz -c|cpio -i
    #gunzip /re.cpio.gz -c |cpio -id
    #gunzip /re.cpio.gz -c |cpio -iud
-u means update
-d means make dirtory first
-i means get file from cpio to current path

你可能感兴趣的:(File,Path)