tar.gz如何生成(图文教程)
tar.gz如何生成(图文教程)
以根目录下的eda为例
[redhat6@ic /]$ ls
bin cgroup eda home lost+found misc net proc sbin srv tmp var
boot dev etc lib media mnt opt root selinux sys usr
[redhat6@ic /]$ tar -czf ic616.tar.gz /eda/*
[redhat6@ic /]$ tar -czf ic616.tar.gz /eda/*
tar: Removing leading `/' from member names
tar (child): ic616.tar.gz: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: ic616.tar.gz: Cannot write: Broken pipe
tar: Error is not recoverable: exiting now
这里说明权限不够,所以采用root
[redhat6@ic /]$ su
Password:
[root@ic /]#
[root@ic /]# tar -czf ic616.tar.gz ./eda
[root@ic /]# ls
bin dev home lost+found mnt proc selinux tmp
boot eda ic616.tar.gz media net root srv usr
cgroup etc lib misc opt sbin sys var
[root@ic /]#
版权声明:本站【趣百科】文章素材来源于网络或者用户投稿,未经许可不得用于商用,如转载保留本文链接:https://www.qubaik.com/answer/29137.html