Linux命令 tar 打包解壓縮
--打包:tar
tar -cvf 命名檔案.tar 要壓縮的目錄
tar -xvf 要解壓的包.tar
tar -tf 要檢視的包.tar
tar -f 包.tar -r file # 向包裡新增檔案file
tar -f 包.tar --get file # 從包裡獲取檔案file
tar -f 包.tar --delete file # 向包裡刪除檔案file
--解壓縮:
1、zip格式
zip -r 命名檔案.zip 要壓縮的目錄
unzip 要解壓的包.zip
2、gzip格式
gzip 要壓縮的包.tar
gunzip 要解壓的包.tar.gz 也可以加引數 -C 指定解壓的目錄
3、bzip2格
bzip2 要壓縮的包.tar
bunzip2 要解壓的包.tar.bz2 也可以加引數 -C 指定解壓的目錄
--tar和gzip組合使用
tar -zcvf 命名檔案.tar.gz 要壓縮的目錄
tar -zxvf 要解壓的包.tar.gz
--tar和bzip2組合使用
tar -jcvf 命名檔案.tar.bz2 要壓縮的目錄
tar -jxvf 要解壓的包.tar.bz2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27633655/viewspace-1080057/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux中常見的打包壓縮命令——tar、jarLinuxJAR
- tar 分卷壓縮&解壓縮命令
- Linux下的tar壓縮解壓縮命令詳解Linux
- Linux 常用基本命令 壓縮 解壓縮 tarLinux
- 壓縮解壓命令(tar, zip)
- Linux tar壓縮和解壓縮等命令Linux
- 壓縮命令tar詳解
- 常用的解壓縮命令 tar
- Linux tar分卷壓縮與解壓縮Linux
- Linux下tar,jar壓縮,解壓常用命令LinuxJAR
- tar的打包-壓縮與解壓縮,並解壓到指定的目錄
- Linux下*.tar.gz檔案解壓縮命令Linux
- linux的tar命令詳情;linux多個檔案壓縮打包到一個壓縮檔案Linux
- Linux命令:XZ解壓tar.xz字尾的壓縮包Linux
- Linux打包壓縮解壓工具Linux
- linux壓縮解壓打包解包Linux
- linux命令系列-zip(壓縮打包)Linux
- linux下壓縮解壓縮命令Linux
- Linux壓縮及解壓縮命令Linux
- linux壓縮(解壓縮)命令詳解-轉Linux
- Golang 學習筆記(四)- archive/tar 實現打包壓縮及解壓Golang筆記Hive
- LINUX(解)壓縮命令Linux
- Linux精講——打包和壓縮tar、gzip、bzip2、xz、zipLinux
- Linux命令:壓縮指令(compress,uncompress,gzip,gunzip,tar)Linux
- tar.gz壓縮命令使用方法
- Linux 常用的壓縮與解壓縮命令詳解Linux
- Ubuntu解壓縮zip,tar,tar.gz,tar.bz2Ubuntu
- linux下壓縮、解壓命令大全Linux
- Linux解壓tar.gz和tar.bz2的命令Linux
- linux打包與壓縮Linux
- Linux tar打包命令詳解,附實戰案例!Linux
- Linux下zip壓縮和unzip解壓縮命令全解Linux
- linux壓縮和解壓縮命令Linux
- linux下檔案打包、壓縮詳解Linux
- Linux(四):Linux的打包和壓縮詳解Linux
- Linux常用命令之檔案壓縮與解壓縮命令詳解Linux
- linux壓縮和解壓縮命令整理Linux
- linux壓縮和解壓縮命令大全Linux