海詩網(wǎng) 知識百科 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的發(fā)布-

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恢復(fù)到當(dāng)前目錄中的SMB . conf。注意: bz2壓縮格式不是很常見。

解壓tar.bz2的包

tar jxf linux-2.8.18.8.tar.bz2

ubuntu解壓tar.gz命令,以上就是本文為您收集整理的ubuntu解壓tar.gz命令最新內(nèi)容,希望能幫到您!更多相關(guān)內(nèi)容歡迎關(guān)注。

本文來自網(wǎng)絡(luò),不代表海詩網(wǎng)立場,轉(zhuǎn)載請注明出處:http://x91880.com/n/169045.html
      

python(python培訓(xùn)班)

發(fā)表回復(fù)
聯(lián)系我們
聯(lián)系我們

在線咨詢: QQ交談

郵箱: 3587015498@qq.com

工作時間:周一至周五,9:00-17:30,節(jié)假日休息

關(guān)注微信
微信掃一掃關(guān)注我們
微信掃一掃關(guān)注我們
關(guān)注微博
返回頂部