我从客户端收到了一个巨大的 .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) 我已经下载了 tar.gz 文件。但我不知道如何安装它。我如何安装这种文件?
我已经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 文件?
在Windows中,我可以写含有CMD(通常命令的文件.cmd
或.bat
文件)。当我点击这些文件时,它会打开cmd.exe
并运行文件包含的命令。
我将如何在 Ubuntu 中执行此操作?
我确定这是重复的,但我找不到我的答案。
它类似于这些问题,但他们没有回答这个问题:
我是 Linux 新手。压缩和解压缩目录及其文件的完整过程是什么。请说明是否必须进行任何安装。
我正在运行 Ubuntu 16.04 LTS。
我正在尝试使用存档管理器提取 tar.gz 文件。
当我尝试解压到/opt
它时说“您没有解压到此文件夹的权限”。
我怎样才能克服这个问题?
我正在关注这个问题以提取 zip。当存在同名文件时,有没有办法在提取文件后自动添加一个数字?
例如,我有example.zip
一个名为contents.csv
. 我的目录是这样的:
contents.csv example.zip
Run Code Online (Sandbox Code Playgroud)
目前,当我解压缩文件夹时,我收到提示:
$ unzip example.zip
Archive: example.zip
replace contents.csv? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
Run Code Online (Sandbox Code Playgroud)
相反,我只想运行unzip example.zip
然后-1
在发生这样的冲突时自动将数字 ( ) 附加到文件名:
contents-1.csv contents.csv example.zip
Run Code Online (Sandbox Code Playgroud)
unzip example.zip
再次运行会给出:
contents-2.csv contents-1.csv contents.csv example.zip
Run Code Online (Sandbox Code Playgroud)
一些 GUI 软件已经这样做了,但我想从脚本中做到这一点。
我已经使用网站上的橙色下载按钮下载了 Xonotic,但现在我不知道如何:
我到处找,请帮忙。
我对某些终端命令有一些疑问:
为什么必须sudo apt-get update
在安装程序之前或下载某些东西之后执行?它会更新Ubuntu吗?
sudo gedit /location/to/afile.txt
和之间有什么区别gksu gedit /location/to/afile.txt
?
为什么人们不在-y
命令的末尾使用,例如在sudo apt-get install programx -y
.
这是什么的-i
和-l
(有什么比较)在终端是什么意思?
如何在终端中解压任何.zip或.tar.gz文件?
command-line ×6
tar ×3
bash ×2
files ×2
unzip ×2
compression ×1
executable ×1
extract ×1
games ×1
gzip ×1
internet ×1
permissions ×1
root ×1