1、*.tar 用 tar –xvf 解压 2、*.gz 用 gzip -d或者gunzip 解压 3、*.tar.gz和*.tgz 用 tar –xzf 解压 4、*.bz2 用 bzip2 -d或者用bunzip2 解压 5、*.tar.bz2用tar –xjf 解压 6、*.Z 用 uncompress 解压 7、*.tar.Z 用tar –xZf 解压 8、*.rar 用 unrar e解压 9、*.zip 用 u...
1、*.tar 用 tar –xvf 解压 2、*.gz 用 gzip -d或者gunzip 解压 3、*.tar.gz和*.tgz 用 tar –xzf 解压 4、*.bz2 用 bzip2 -d或者用bunzip2 解压 5、*.tar.bz2用tar –xjf 解压 6、*.Z 用 uncompress 解压 7、*.tar.Z 用tar –xZf 解压 8、*.rar 用 unrar e解压 9、*.zip 用 u...
-m 压缩后删除源文件 -d 删除压缩包中指定的文件 比如 zip -d 包名.zip 文件名(要删除的) -x: 压缩时指定排除某个文件 用法:zip files.zip * -x 5.txt -q: 不显示进度 安静模式 unzip解压zip包 unzip 包名 -n 解压缩不覆盖源文件 -d 指定文件解压后存储的目录 -v 查看详细过程或者查看压缩文件目录...
[root@ubuntu ~]# tar -uf all.tar logo.gif #更新原来tar包all.tar中logo.gif文件,-u是表示更新文件的意思[root@ubuntu ~]# tar -xf all.tar #解出all.tar包中所有文件,-x是解开的意思[root@ubuntu ~]# tar -cjf all.tar.bz2 *.jpg #压缩成.bz2的压缩文件[root@ubuntu ~]# tar -xjf all....
打包文件:`tar -cvf all.tar *.jpg` 增加文件:`tar -rf all.tar *.gif` 更新文件:`tar -uf all.tar logo.gif` 列出文件:`tar -tf all.tar` 创建新包:`tar -cvf archive.tar foo bar` 详细列出:`tar -tvf archive.tar` 解包:`tar -xf archive.tar` tar...
2.解压目录xz-d-cfile.tar.xz|tarxf- 使用tar命令取代xz 3.压缩命令tarcJffile.tar.xzfile 4.解压命令tarxJffile.tar.xz rar格式解压缩 须要额外安装rar工具 1.压缩命令rarafile.rarfile 2.解压命令rarxfile.rar 7z格式解压缩 1.压缩命令7zafile.7zfile 2.解压命令7zxfile.7z bzip2格式解压缩 可以使用tar...
many files together into a single tape or disk archive, and canrestore individual files from the archive.Examples:tar -cf archive.tar foo bar # Create archive.tar from files foo and bar.tar -tvf archive.tar # List all files in archive.tar verbosely.tar -xf archive.tar...
#目标 result 文件夹 #压缩 tar -chf - result | pigz -p 16 -k > result.tar.gz #解压,保留原始压缩文件 pigz -p 2 -k -c -d result.tar.gz | tar -xf - pigz 参数 -d, --decompress Decompress the compressed input -p, --processes n Allow up to n compression threads (default is ...
tar -xf 展开归档 [root@localhost ~]# tar -xf test.tar [root@localhost ~]# ll tar -tf 不展开归档,直接查看归档文件 [root@localhost ~]# tar -tf test.tar test/ test/second.sh test/case.sh test/sum.sh test/third.sh test/userexit.sh ...
tar -xf etc.tar.gz -C /tmp 压缩的时候排除文档 打包压缩的时候可以排除一个或者多个文件或者目录 排除一个文件 tar -jcv -f t.tar.bz2 d1 d2 --exclude=s1 排除多个文件 tar -jcv -f t.tar.bz2 d1 d2 --exclude={s1,s2} 目录也可以 ...