- 浏览: 160899 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
semmy:
赞一个
displaytag的Excel导出实践 -
李君寻:
...
displaytag的Excel导出实践 -
xiaoz170:
不太明白为嘛包这一层 class ,反而使代码更复杂。难道是为 ...
试读《基于MVC的JavaScript Web富应用开发》— 不一样的JavaScript -
lingceng:
<mirror> <id>U ...
maven usage guide
导读:
linux中有很多命令可以关于压缩的命令:tar,zip,compress;也有很多的压缩格式,tar,tar.gz,zip。对这些命令和格式有疑惑吗?他们的使用有什么区别呢?
摘要:
Details:
tar files usually have the extension ".tar", as in somefile.tar As a pun, a tar file is commonly referred to as a tarball.[1]
One situation in which you may want to use tar is when you have a number of files which you want send online. If you email the files, you might be sending many attachments. If you post the files on a web page, you might have many links. You can use tar to avoid dealing with multiple files. You create one file, a tar file, into which you put your files. Then you can email this one tar file, or post it on a web page.
Note that a tar file does not compress the files which it contains. To compress a tar file, you can use a variety of compression programs, such as gzip, bzip2, xz, lzip, lzma, or compress. For example, if you use gzip to compress a tar file, the resulting file might have the name somefile.tar.gz.
(Alternatively, in the example above, instead of using a compressed tar file, you could put the files into a zip file. Simply, the difference between a zip file and a compressed tar file is that a zip file "compresses each file, and then merges the compressed files," whereas a compressed tar file "merges the files, and then compresses the big file." In other words, a zip file does not use solid compression, but a compressed tar file does.)
Popular tar programs like the BSD and GNU versions of tar support the command line options -Z (compress), -z (gzip), and -j (bzip2) to automatically compress or decompress the archive file it is currently working with. GNU tar from version 1.20 onwards also supports --lzma (LZMA). 1.21 also supports lzop via --lzop, 1.22 adds support for xz via --xz or -J, and 1.23 adds support for lzip via --lzip.
Tar archiving is often used together with a compression method, such as gzip, to create a compressed archive. As shown, the combination of the files in the archive are compressed as one unit.
MS-DOS's 8.3 filename limitations, and a desire for brevity, resulted in additional popular conventions for naming compressed tar archives, though this practice has declined with FAT offering long filenames.
.tgz is equivalent to .tar.gz
.tbz, .tbz2 and .tb2 are equivalent to .tar.bz2
.taz is equivalent to .tar.Z
.tlz is equivalent to .tar.lz
.txz is equivalent to .tar.xz
Usage:
references:
http://en.wikipedia.org/wiki/Tar_(file_format)
linux中有很多命令可以关于压缩的命令:tar,zip,compress;也有很多的压缩格式,tar,tar.gz,zip。对这些命令和格式有疑惑吗?他们的使用有什么区别呢?
摘要:
- tar是solid compress,rar和7zip也是;而zip不是。
- tar是把文件集合起来,然后用各种方式压缩,如果用gzip便压为tar.gz,如果用bzip2便压缩为tar.bz2。
- 为适用MS-DOS's 8.3 filename limitations,tar.gz equals tgz,tar.bz2 equals tbz。
Details:
tar files usually have the extension ".tar", as in somefile.tar As a pun, a tar file is commonly referred to as a tarball.[1]
One situation in which you may want to use tar is when you have a number of files which you want send online. If you email the files, you might be sending many attachments. If you post the files on a web page, you might have many links. You can use tar to avoid dealing with multiple files. You create one file, a tar file, into which you put your files. Then you can email this one tar file, or post it on a web page.
Note that a tar file does not compress the files which it contains. To compress a tar file, you can use a variety of compression programs, such as gzip, bzip2, xz, lzip, lzma, or compress. For example, if you use gzip to compress a tar file, the resulting file might have the name somefile.tar.gz.
(Alternatively, in the example above, instead of using a compressed tar file, you could put the files into a zip file. Simply, the difference between a zip file and a compressed tar file is that a zip file "compresses each file, and then merges the compressed files," whereas a compressed tar file "merges the files, and then compresses the big file." In other words, a zip file does not use solid compression, but a compressed tar file does.)
Popular tar programs like the BSD and GNU versions of tar support the command line options -Z (compress), -z (gzip), and -j (bzip2) to automatically compress or decompress the archive file it is currently working with. GNU tar from version 1.20 onwards also supports --lzma (LZMA). 1.21 also supports lzop via --lzop, 1.22 adds support for xz via --xz or -J, and 1.23 adds support for lzip via --lzip.
Tar archiving is often used together with a compression method, such as gzip, to create a compressed archive. As shown, the combination of the files in the archive are compressed as one unit.
MS-DOS's 8.3 filename limitations, and a desire for brevity, resulted in additional popular conventions for naming compressed tar archives, though this practice has declined with FAT offering long filenames.
.tgz is equivalent to .tar.gz
.tbz, .tbz2 and .tb2 are equivalent to .tar.bz2
.taz is equivalent to .tar.Z
.tlz is equivalent to .tar.lz
.txz is equivalent to .tar.xz
Usage:
tar -cf list.tar /com # pack the files under /com to list.tar tar -tf list.tar # to see the files in the list.tar
references:
http://en.wikipedia.org/wiki/Tar_(file_format)
发表评论
-
使用jslint与qunit保障JS代码质量
2013-07-09 11:16 978使用jslint进行语法和风格的检查,可以预防错误。 ... -
Vim find & replace
2013-04-10 17:59 1173Vim find & replace (RT) To ... -
displaytag的Excel导出实践
2013-03-01 18:00 6128前言 Displaytag官网有1.0, 1.1, 1.2 ... -
Gson切面日志实践
2013-02-26 17:47 2398背景 应用切面做日志记录,记录操作实体详情时可以使用JSO ... -
vim fast move tip
2013-01-23 11:03 871search: * to search current ... -
Vim good Tip
2013-01-07 00:35 0Most time is spent reading, ... -
displaytag的汇总功能
2012-11-07 10:39 1082displaytag 有列汇总功能,以前不知道step1:需要 ... -
vim改变大小写
2012-10-26 14:26 918~ 将光标下的字母改变大小写 3~ ... -
让maven打包快些
2012-10-25 10:20 1089Maven中打包常使用war:package,这个命令会编 ... -
修改Eclipse项目呈现
2012-10-22 15:01 794Eclipse的maven项目总是呈现一些不需要的试图,因为被 ... -
Ubuntu上使用SSH
2012-10-21 23:27 904ubuntu默认并没有安装ssh服务,如果通过ssh链接ubu ... -
Ubuntu安装 Apache
2012-10-21 13:23 856Ubuntu为我们提供了 su apt-get install ... -
linux按列分割cut
2012-10-19 12:00 5120按列获取数据,例如ps命令中,我想获取UID这一列。使用ps ... -
常用eclipse插件
2012-10-16 21:27 767update at 2013-12-09 使用Eclipse ... -
jquery的表格插件,选择显示列
2012-10-16 16:59 2414git clone可以获取源码,选择显示列。 https:// ... -
vim coding
2012-10-16 15:32 752Vim和所有的流行文本编 ... -
vim tab
2012-10-16 15:16 714set autoindent "use backs ... -
install subeclipse on ubuntu
2012-09-09 12:30 967Ubuntu12.10, eclipse indigo i ... -
maven usage guide
2012-08-28 13:08 1465edit at 2012-12-09 学习全在于应用,实 ... -
win7笔记本建Android能够访问的WIFI
2012-08-18 01:03 1081使用软件可以方便的建立adhoc,但是Android目前不支持 ...
相关推荐
在Linux操作系统中,`tar`命令是一个非常重要的工具,它用于处理档案文件,可以进行创建、提取、查看、归档等多个操作。`tar`的名字来源于“tape archive”,最初设计是用来备份数据到磁带上的,但现在它广泛应用于...
Linux tar 压缩打包命令使用方法 Linux tar 压缩打包命令是 Linux 操作系统中常用的压缩和打包工具。tar 命令可以将多个文件或目录压缩成一个文件,以便于存储和传输。下面是 tar 命令的使用方法和参数解释。 参数...
Linux tar 命令出现 Cowardly refusing to create an empty archive 错误解决办法 1 问题描述 写了一个 shell 脚本,执行时出现以下错误: 错误提示的字面意思是,系统惴惴不安地拒绝执行创建一个空压缩包的任务。P...
索下载你所需要的版本号的内核源代码范围从linux-1.0.tar到linux-2.6.29.tar,推荐朋友们用ultraedit去打开比较方便阅读,当然是自己喜 欢的阅读器就行了,也不一定用这个,不过这个阅读起来的确比较好用的!
tar.bz2 安装 Linux 软件的方法 tar.bz2 是一种常见的压缩文件格式,广泛应用于 Linux 操作系统中。今天,我们将学习如何在 Linux 中安装 tar.bz2 文件,并解释每个步骤的详细过程。 步骤 1: 使用 root 帐户登录 ...
解压后使用方法:(不执行下面两步,运行java -version会报下面的错误,解压命令:tar xvzf jdk1.6.0_191.linux.x64.tar.gz) # Error occurred during initialization of VM # java/lang/NoClassDefFoundError: java...
Linux 网络操作系统基础:文件命令归档压缩命令 tar 和 gzip 在 Linux 操作系统中,文件命令是非常重要的基本组件之一。在这篇文章中,我们将介绍 Linux 中的文件命令,特别是归档压缩命令 tar 和 gzip。 gzip ...
例如,`sudo tar -zxf jdk-7uXX-linux-x64.tar.gz -C /usr/lib/jvm/jdk1.7.0` 和 `sudo tar -zxf jdk-8uXX-linux-x64.tar.gz -C /usr/lib/jvm/jdk1.8.0`。 4. **配置环境变量**:为了让系统能够识别和使用JDK,需要...
2. 使用解压命令(如tar -zxvf jdk-7u79-linux-x64.tar.gz)将内容解压到指定目录。 3. 设置环境变量,例如在~/.bashrc或~/.bash_profile文件中添加以下行: ```bash export JAVA_HOME=/path/to/your/jdk1.7.0_79 ...
Android Studio Arctic Fox(2020.3.1.23)开发工具版本适用 Linux系统,android-studio-2020.3.1.23-linux.tar.gz,它是Android Studio 4.2.2的下一个版本Android Studio 4.3。
linux-2.6.26.tar 安装 Iso 格式
Zotero 是一个免费易用的 Firefox 扩展与客户端软件,可以协助我们收集、管理及引用研究资源,包括期刊、书籍等各类文献和网页、图片等。与Endnote等不同的是,它既可以单独使用,也可以内嵌于 Firefox 与 Google ...
缓存
helm-v3.5.3-linux-amd64.tar.gz.asc
3. 解压文件:使用`tar`命令解压`.tar.gz`文件,例如:`tar -zxvf jdk1.8的Linux版本.tar.gz`。这将创建一个名为`jdk1.8`的目录,包含JDK的所有文件。 4. 设置环境变量:为了能够在系统中全局使用JDK,需要设置`JAVA...
gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2
openjdk-18.0.1.1(openjdk-18.0.1.1_linux-x64_bin.tar.gz)适用于Linux x64 系统:
Linux tar命令 Linux tar命令用于备份文件。 tar是用来建立,还原备份文件的工具程序,它可以加入,解开备份文件内的文件。 语法 tar [-ABcdgGhiklmMoOpPrRsStuUvwWxzZ][-b ][-C ][-f ][-F ][-K ][-L ][-N ][-T ][-...
jdk1.6.0_45,Linux 64位,Ubuntu 或者 CentOS 均可,亲测,解压即可用 (解压命令 tar -xf xxxxx.tar.gz), 配置环境变量 /etc/profile (非必要操作,因为 IDEA 可以直接选择 1.6 所在目录,无需添加环境变量) ...
linux-5.3.7.tar.xz 注意解压是xz后缀,希望可以帮助到您。