tar gz bz2区别_一步将那些tar.gz或tar.bz2文件解压缩并解压缩

tar gz bz2区别_一步将那些tar.gz或tar.bz2文件解压缩并解压缩

tar gz bz2区别

If you are new to the world of Linux, you probably unzip your tar.gz files first, and then extract them from the tar file… at least, if you are even bothering to use the command prompt at all. It’s easy to gunzip or even bunzip2 the files with a simple command-line switch.

如果您不熟悉Linux,则可能首先解压缩tar.gz文件,然后从tar文件中提取它们……至少,即使您根本不想使用命令提示符也是如此。 使用简单的命令行开关即可轻松压缩文件甚至将文件压缩成2个文件。

To gunzip and untar a file in a single step, use the following—note that the z switch is the important one that tells tar to unzip it.

要一步压缩和解压缩文件,请使用以下命令-请注意,z开关是告诉tar解压缩文件的重要开关。

tar xvfz somefilename.tar.gz

tar xvfz somefilename.tar.gz

To use bunzip2 to extract your tar.bz2 file in a single step, use the j switch instead.

要在一个步骤中使用bunzip2提取tar.bz2文件,请改用j开关。

tar xvfj somefilename.tar.bz2

tar xvfj somefilename.tar.bz2

Ahh, nice and simple, just the way we like it.

啊,很好,很简单,就是我们喜欢的方式。

翻译自: https://www.howtogeek.com/50093/unzip-bunzip2-and-untar-those-tar-gz-or-tar-bz2-files-in-one-step/

tar gz bz2区别