tar.gz如何生成(图文教程)
工具/原料
PC
cadenceic616
方法/步骤
1、以根目录下的eda为例[redhat6@ic/]$lsbincgroupedahomelost+foundmiscnetprocsbinsrvtmpvarbootdevetclibmediamntoptrootselinuxsysusr
2、[redhat6@ic/]$tar-czfic616.tar.gz/eda/*
3、[redhat6@ic/]$tar-czfic616.tar.gz/eda/*隋茚粟胫tar:Removingleading`/&垆杪屑丝#39;frommembernamestar(child):ic616.tar.gz:Cannotopen:Permissiondeniedtar(child):Errorisnotrecoverable:exitingnowtar:ic616.tar.gz:Cannotwrite:Brokenpipetar:Errorisnotrecoverable:exitingnow这里说明权限不够,所以采用root
4、[redhat6@ic/]$suPassword:[root@ic/]#
5、[root@ic/]#tar-czfic616.tar.gz./eda
6、[root@ic/]#lsbindevhomelost+foundmntp筠续师诈rocselinuxtmpbooteda惺绅寨瞀ic616.tar.gzmedianetrootsrvusrcgroupetclibmiscoptsbinsysvar[root@ic/]#