user1@vm1:/$ tar -czvf root.tgz /opt/root/ tar: Removing leading `/' from member names /opt/root/ /opt/root/lib64/ /opt/root/lib64/ld-linux-x86-64.so.2 tar (child): root.tgz: Cannot open: Permission denied tar (child): Error is not recoverable: exiting now tar: root.tgz: Wrote only 4096 of 10240 bytes tar: Error is not recoverable: exiting now
输入第4条命令tar -zxvf ~/root.tgz后也报错。错误信息如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
user1@vm1:/tmp$ tar -zxvf ~/root.tgz opt/root/ tar: opt/root: Cannot mkdir: No such file or directory opt/root/lib64 tar: opt/root/lib64: Cannot open: No such file or directory opt/root/lib/ tar: opt/root/lib: Cannot mkdir: No such file or directory opt/root/lib/libncurses.so.5 tar: opt/root/lib/libncurses.so.5: Cannot open: No such file or directory opt/root/lib/libdl.so.2 tar: opt/root/lib/libdl.so.2: Cannot open: No such file or directory opt/root/lib/libc.so.6 tar: opt/root/lib/libc.so.6: Cannot open: No such file or directory opt/root/bin/ tar: opt/root/bin: Cannot mkdir: No such file or directory opt/root/bin/bash tar: opt/root/bin/bash: Cannot open: No such file or directory tar: Exiting with failure status due to previous errors