我从客户端收到了一个巨大的 .tar.gz 文件,其中包含大约 800 mb 的图像文件(未压缩时)。我们托管公司的 ftp 非常慢,因此在本地提取所有文件并通过 ftp 发送它们是不切实际的。我能够将 .tar.gz 文件 ftp 到我们的托管站点,但是当我 ssh 进入我的目录并尝试使用 unzip 时,它给了我这个错误:
[esthers@clients locations]$ unzip community_images.tar.gz
Archive: community_images.tar.gz
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
note: community_images.tar.gz may be a plain executable, not an archive
unzip: cannot find zipfile directory in …Run Code Online (Sandbox Code Playgroud) 我习惯于提取带有-xfz标志的tarball,该标志处理 gzip 和 bzip2 档案。
最近我遇到了一个.tar.xz文件,我想使用 一步解压缩它,tar我该怎么做?
我以为tar archive.tar /users/mylocation会工作,但它没有。我怎样才能做到这一点?
我已经mongodb-linux-x86_64-2.6.3.tgz使用 Windows 7下载了文件并将其保存在D:\Amra\Software\Developing Soft某个位置。
当我使用 Ubuntu 右键单击这个 .tgz 文件并查看它显示的属性时Location: /media/towhid/Amra/Software/Developing Soft。现在我将如何使用tar终端命令解压缩这个 .tgz 文件?
我ssh-ed 进入我的虚拟主机的目录,并tar-ed 下载 webapp。当我尝试mv到~/mydirectory/backups或者/home/mydirectory/backups,它的“家”定义为我的虚拟主机提供商说我ssh'ed成根。
我如何在 ssh 中 mv 到本地驱动器,同时仍然在网络主机的系统内?
是否可以从 .tar 备份中恢复单个文件?我不想恢复总备份。我只想从备份中恢复一个文件。
有没有办法在 Ubuntu 中使用命令行工具提取 tar.7z 格式的文件?
我想压缩 .tgz 中的文件。我知道如何制作 tar.gz(使用 tar 和 gzip),有些人说它几乎相同,但我需要制作 .tgz,怎么做??
我正在下载一个压缩为 .tar.bz2 的引擎游戏文件。
我正在尝试这个命令
tar -zxvf enginsxt.tar.bz2
Run Code Online (Sandbox Code Playgroud)
它会引发错误。我知道那个命令
tar -zxvf
Run Code Online (Sandbox Code Playgroud)
仅用于提取.tar.gz文件,但我该如何解压这个文件?
我想创建一个 tar 文件来压缩包含子文件夹的文件夹。我正在终端中尝试使用以下命令 int:
tar -czf folder directorios.tar.gz
Run Code Online (Sandbox Code Playgroud)
directory.tar.gz 将是结果