总结Linux压缩解压的所有命令

系统 Linux
Linux压缩解压命令不只是一个,不应定非得要会这么多的命令,但是我们也应该多少知道有多少命令,不必全部掌握,但是要知道。

Linux压缩解压不只是一个,有多种方式可以选择,就算是同一个命令后面所跟的选项不同那么出来的效果也是不同的,这里对Linux压缩解压的命令进行一个总结,以便在以后的工作中有所帮助。

说明: tar命令在没加z、j、Z选项时只是解包或打包, 没有进行压缩

◆后缀 .tar
解压命令: tar xvf InFile.tar
压缩命令: tar cvf OutFile.tar InFile
可压缩文件类型: 文件夹

◆后缀 .tar.gz
解压命令: tar zxvf InFile.tar.gz
压缩命令: tar zcvf OutFile.tar.gz InFile
可压缩文件类型: 文件夹

◆后缀 .tar.bz2
解压命令: tar jxvf InFile.tar.bz2
压缩命令: tar jcvf OutFile.tar.bz2 InFile
可压缩文件类型: 文件夹

◆后缀 .tar.Z
解压命令: tar Zxvf InFile.tar.Z
压缩命令: tar Zcvf OutFile.tar.Z InFile
可压缩文件类型: 文件夹

◆后缀 .gz
解压命令: gzip -d InFile.gz 或 gunzip InFile.gz
压缩命令: gzip InFile
可压缩文件类型: 普通文件/打包文件

◆后缀 .zip
解压命令: unzip InFile.zip
压缩命令: zip OutFile.zip InFile
可压缩文件类型: 普通文件列表/打包文件

◆后缀 .bz2
解压命令: bzip2 -d InFile.bz2 或 bunzip2 InFile.bz2
压缩命令: bzip2 -z InFile
可压缩文件类型: 普通文件/打包文件

◆后缀 .Z
解压命令: uncompress InFile.Z
压缩命令: compress InFile
可压缩文件类型: 打包文件

◆后缀 .rar
解压命令: rar x InFile.rar
压缩命令: rar a InFile
可压缩文件类型: 文件夹/普通文件列表/打包文件

差不多把Linux压缩解压命令也就这些了,使用方式也应该没问题了。

【编辑推荐】

  1. 详细介绍Linux finger命令的使用
  2. 详细介绍Linux telnet命令的使用
  3. 详述Linux ftp命令的使用方法
  4. 举例分析Linux动态库和静态库
  5. 讨论关闭进程来解决ubantu系统过慢
责任编辑:小霞 来源: 互联网
相关推荐

2010-01-04 09:27:31

Linux压缩解压缩命令详解

2023-01-30 09:04:56

Linux命令unzip

2021-02-22 07:58:52

Linux压缩解压

2012-05-10 09:43:28

2010-06-24 09:29:02

Linux Bzip2

2024-01-04 12:47:00

Linux命令工具

2020-01-02 10:13:46

Redis数据库字符串

2009-12-25 18:05:05

Linux压缩程式

2018-09-14 16:18:26

Linux压缩文件应用程序

2012-11-23 16:09:43

Linux Deepitarball

2023-10-18 08:28:17

Linux压缩

2013-01-29 14:08:58

UbuntuUbuntu手机Ubuntu手机操作系

2023-12-21 07:30:36

PythonZipfileTarfile

2010-06-30 13:38:42

linux ftp命令

2017-02-27 19:57:02

Linux备份压缩命令

2016-11-17 22:02:13

Linux压缩及解压缩

2019-12-01 22:59:43

Linux shell命令进程

2009-09-05 10:26:20

Linux压缩打包命令Linux命令

2010-03-04 13:54:39

Linux压缩命令

2011-08-25 15:23:58

Linux系统监控命令
点赞
收藏

51CTO技术栈公众号