海诗网 知识百科 ubuntu解压tar.gz命令(linux解压tar.gz命令)

ubuntu解压tar.gz命令(linux解压tar.gz命令)

ubuntu解压tar.gz命令, ubuntu解压tar.gz的命令是什么,怎么用?不知道小伙伴们今天来看看边肖的分享吧!

1、tar.gz命令简介:

Tar将文件打包成一个包,不进行压缩;Gz用gzip打包tar文件并压缩;所以它成了tar.gz的档案。

2.压缩:

# tar cvfz backup.tar.gz /xxx/

-c, --createcreate a new archive

-v, --verboseverbosely list files processed

-f, --file [HOSTNAME:]Fuse archive file or device F (default /dev/rmt0)

-z, --gzip, --ungzipfilter the archive through gzip

linux解压tar.gz命令

3、减压:

tar-zxvf xxx.tar.gz,它将生成一个以文件名命名的文件夹。

-z, --gzip, --ungzipfilter the archive through gzip

-x, --extract, --getextract files from an archive

-v, --verboseverbosely list files processed

-f, --file [HOSTNAME:]Fuse archive file or device F (default /dev/rmt0)

4.检查文件列表:

tar -tvzf *.tar.gz

-t, --listlist the contents of an archive

linux解压tar.gz命令

5.其余选项:

-r, --appendappend files to the end of an archive

6.如何使用tar和gzip:

压缩一组文件为tar.gz后缀# backup.tar/etc CVF # backup.tar或# tar cvfz backup.tar.gz/etc

Release a file with the suffix tar.gz # Gonzipu backup.tar.gz # Tarxvf backup.tar or # Tarxvfz backup.tar.gz.

用一个命令完成# tar CVF-/etc/| gzip-QC backup.tar.gz的压缩。

完成# gunzip-c backup.tar.gz | tarx VF的发布-

Untie the tar. Z file # tar xvfz backup.tar.Z or # unzip backup.tar.z # tarxvf backup.tar.

linux解压tar.gz命令

解开. tgz文件#gunzip backup.tgz

压缩和解压缩. bz2的包#bzip2 /etc/smb.conf。这将压缩文件smb.conf.bz2 # bunzip2/etc/smb.conf . bz2。这将把SMB . conf . bz2恢复到当前目录中的SMB . conf。注意: bz2压缩格式不是很常见。

解压tar.bz2的包

tar jxf linux-2.8.18.8.tar.bz2

ubuntu解压tar.gz命令,以上就是本文为您收集整理的ubuntu解压tar.gz命令最新内容,希望能帮到您!更多相关内容欢迎关注。

本文来自网络,不代表海诗网立场,转载请注明出处:https://www.hallse.com/n/169045.html
      

python(python培训班)

发表回复
联系我们
联系我们

在线咨询: QQ交谈

邮箱: 3587015498@qq.com

工作时间:周一至周五,9:00-17:30,节假日休息

关注微信
微信扫一扫关注我们
微信扫一扫关注我们
关注微博
返回顶部