diff --git a/translated/tech/20190510 How to Use 7Zip in Ubuntu and Other Linux -Quick Tip.md b/translated/tech/20190510 How to Use 7Zip in Ubuntu and Other Linux -Quick Tip.md index 1800a03110..b7d36cd794 100644 --- a/translated/tech/20190510 How to Use 7Zip in Ubuntu and Other Linux -Quick Tip.md +++ b/translated/tech/20190510 How to Use 7Zip in Ubuntu and Other Linux -Quick Tip.md @@ -7,86 +7,86 @@ [#]: via: (https://itsfoss.com/use-7zip-ubuntu-linux/) [#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/) -How to Use 7Zip in Ubuntu and Other Linux [Quick Tip] -====== +如何在 Ubuntu 和其他 Linux 分发版上使用 7Zip [快速指南] +==================================================== -_**Brief: Cannot extract .7z file in Linux? Learn how to install and use 7zip in Ubuntu and other Linux distributions.**_ +_**简介: 不能在 Linux 中提取 .7z 文件? 学习如何在 Ubuntu 和其他 Linux 分发版中安装和使用 7zip。**_ -[7Zip][1] (properly written as 7-Zip) is an archive format hugely popular among Windows users. A 7Zip archive file usually ends in .7z extension. It’s mostly an open source software barring a few part of the code that deals with unRAR. +[7Zip][1](更适当的写法是 7-Zip)是一种在 Windows 用户中广泛流行的文档格式。一个 7Zip 文档文件通常以 .7z 扩展结尾。它大部分是开源的,除了包含一些少量解压 rar 文件的代码。 -The 7Zip support is not enabled by default in most Linux distributions. If you try to extract it, you may see this error: +默认大多数 Linux 分发版不支持 7Zip。如果你试图提取它,你会看见这个错误: -_**Could not open this file type -There is no command installed for 7-zip archive files. Do you want to search for a command to open this file?**_ +_**不能打开这种文件类型 +没有已安装的适用 7-zip 文档文件的命令。你想搜索一个命令来打开这个文件吗**_ ![][2] -Don’t worry, you can easily install 7zip in Ubuntu or other Linux distributions. +不要担心,你可以轻松的在 Ubuntu 和其他 Linux 分发版中安装 7zip。 -The one problem you’ll notice if you try to use the [apt-get install command][3], you’ll see that there are no installation candidate that starts with 7zip. It’s because the 7Zip package in Linux is named [p7zip][4]., start with letter ‘p’ instead of the expected number ‘7’. +一个问题是你会注意到如果你试图用 [apt-get install 命令][3],你会发现没有以 7zip 开头的候选安装。因为在 Linux 中 7Zip 包的名字是 [p7zip][4]。以字母 ‘p’ 开头而不是预期的数字 ‘7’。 -Let’s see how to install 7zip in Ubuntu and (possibly) other distributions. +让我们看一下如何在 Ubuntu 和其他 Linux 分发版中安装 7zip。 -### Install 7Zip in Ubuntu Linux +### 在 Ubuntu Linux 中安装 7Zip ![][5] -First thing you need is to install the p7zip package. You’ll find three 7zip packages in Ubuntu: p7zip, p7zip-full and p7zip-rar. +你需要做的第一件事是安装 p7zip 包。你会在 Ubuntu 中发现 3 个包:p7zip,p7zip-full 和 pzip-rar。 -The difference between p7zip and p7zip-full is that p7zip is a lighter version providing support only for .7z while the full version provides support for more 7z compression algorithms (for audio files etc). +pzip 和 p7zip-full 的不同是 pzip 是一个轻量级的版本,仅仅对 .7z 文件提供支持,而 full 版本提供了更多的 7z 压缩算法(例如音频文件)。 -The p7zip-rar package provides support for [RAR files][6] along with 7z. +p7zip-rar 包在 7z 中提供了对 [RAR 文件][6] 的支持 -Installing p7zip-full should be sufficient in most cases but you may also install p7zip-rar for additional support for the rar file. +安装 p7zip-full 在大多数情况下足够了,但是你可能想安装 p7zip-rar 来支持 rar 文件的解压。 -p7zip packages are in the [universe repository in Ubuntu][7] so make sure that you have enabled it using this command: +p7zip 包在[ Ubuntu 的 universe 仓库][7] 因此保证你可以使用以下命令: ``` sudo add-apt-repository universe sudo apt update ``` -Use the following command to install 7zip support in Ubuntu and Debian based distributions. +在 Ubuntu 和 基于 Debian 的分发版中使用以下命令。 ``` sudo apt install p7zip-full p7zip-rar ``` -That’s good. Now you have 7zip archive support in your system. +这很好。现在在你的系统之有了 7zip 文档的支持。 [][8] -Suggested read Easily Share Files Between Linux, Windows And Mac Using NitroShare +建议使用 NitroShare 在 Linux,Windows 和 Mac 系统之间轻松共享文件。 -### Extract 7Zip archive file in Linux +### 在 Linux中提取 7Zip 文档文件 -With 7Zip installed, you can either use the GUI or the command line to extract 7zip files in Linux. +安装了 7Zip 后,在 Linux 中,你可以在图形用户界面或者 命令行中提取 7zip 文件。 -In GUI, you can extract a .7z file as you extract any other compressed file. You right click on the file and proceed to extract it. +在图形用户界面,你可以像提取其他压缩文件一样提取 .7z 文件。右击文件来提取它。 -In terminal, you can extract a .7z archive file using this command: +在终端中,你可以使用下列命令提取 .7z 文档文件: ``` 7z e file.7z ``` -### Compress a file in 7zip archive format in Linux +### 在 Linux 中压缩文件为 7zip 文档格式 -You can compress a file in 7zip archive format graphically. Simply right click on the file/directory, and select **Compress**. You should see several types of archive format options. Choose .7z for 7zip. +你可以在图形界面压缩文件为 7zip 文档格式。简单的在文件或目录上右击,选择**压缩**。你应该看到几种类型的文件格式选项。选择 .7z。 ![7zip Archive Ubuntu][9] -Alternatively, you can also use the command line. Here’s the command that you can use for this purpose: +作为替换,你也可以在命令行中使用。这里是你可以用来压缩的命令: ``` -7z a OutputFile files_to_compress +7z a 输出的文件名 要压缩的文件 ``` -By default, the archived file will have .7z extension. You can compress the file in zip format by specifying the extension (.zip) of the output file. +默认,文档文件有 .7z 扩展。你可以压缩文件为 zip 格式通过在输出文件中指定0扩展(.zip)。 -**Conclusion** +**总结** -That’s it. See, how easy it is to use 7zip in Linux? I hope you liked this quick tip. If you have questions or suggestions, feel free to let me know the comment sections. +就是这样。看,在 Linux 中使用 7zip 多简单?我希望你喜欢这个快速指南。如果你有问题或者建议,请随意在下方评论让我知道。 -------------------------------------------------------------------------------- @@ -94,7 +94,7 @@ via: https://itsfoss.com/use-7zip-ubuntu-linux/ 作者:[Abhishek Prakash][a] 选题:[lujun9972][b] -译者:[译者ID](https://github.com/译者ID) +译者:[warmfrog](https://github.com/warmfrog) 校对:[校对者ID](https://github.com/校对者ID) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出