如何在终端解压tensorflow hub模块?

How to decompress tensorflow hub module in the terminal?

I want to download, decompress, and use a pretrained model from tensorflow-hub

下载后我得到了一个 1.tar.tar 文件,我可能需要提取/解压缩才能使用它。 我无法理解如何,我在 Linux 终端工作。

If your tar file is compressed using tar compression, use this command to decompress it. Make sure to be in the directory of the tar.tar file, it will decompress everything into the directory you are currently in.

$ tar xvzf 1.tar.tar

其中,

x:此选项告诉 tar 提取文件。

v:“v”代表“冗长”。此选项将在存档中一一列出所有文件。

z: z 选项很重要,告诉tar命令解压缩文件。

f:这个选项告诉 tar 你要给它一个文件名来使用。

很高兴知道: tarball 是使用 tar 命令捆绑在一起并具有 .tar 文件扩展名的一组文件或文件存档。