[root@localhost src]# tar -zxvf /root/Desktop/daq-2.0.4.tar.qz
tar (child): /root/Desktop/daq-2.0.4.tar.qz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Run Code Online (Sandbox Code Playgroud)
当我运行该命令时,出现无法打开文件的错误。我不知道为什么。谁能帮我这个?
我想将文件附加到foo.tar:
tar -rvf foo.tar IMG_1807.MOV
Run Code Online (Sandbox Code Playgroud)
这可行,但是当我想删除文件时:
tar -dvf foo.tar IMG_1807.MOV
Run Code Online (Sandbox Code Playgroud)
不起作用。它显示了输出:
Terminal:~/Desktop$ tar -dvf foo.tar IMG_1807.MOV
IMG_1807.MOV
Terminal:~/Desktop$ tar -tvf foo.tar
-rw-rw-r-- user/user 33084363 2018-12-19 03:02 IMG_1807.MOV
Run Code Online (Sandbox Code Playgroud)
但不会删除任何内容。我应该怎么办?
其次,如何在file.tar.gz或file.tar.bz2或中添加或删除文件file.tar.xz?是否有任何命令或者我应该总是再次解压和压缩?
编辑:
第三:如何从压缩文件中提取特定文件?或者如何从特定位置的 tar 中提取?这不起作用:
tar -xvf foo.tar IMG_1807.MOV -C /path/to/destination
Run Code Online (Sandbox Code Playgroud) 我从 R Studio 网站下载了以下文件:
rstudio-1.2.1335-amd64-debian.tar.gz
Run Code Online (Sandbox Code Playgroud)
到目前为止,我已经执行了以下操作:
sudo tar -zxvf rstudio-1.2.1335-amd64-debian.tar.gz
Run Code Online (Sandbox Code Playgroud)
请告知如何安装此类更新?因为我已经拥有以前的 R Studio。
我已经看到了有关安装 .tar.xy 文件的其他线程,但 SQLite Studio 没有附带安装程序。从网站上 - “所有文件都是可移植的软件包(没有安装程序,只需下载、解压缩并运行)。” 我已经使用 tar xvf <file_name> 解压缩,但现在我有一个似乎无法运行的文件夹。
我阅读了类似问题的答案,但这对我没有帮助。我的计算机运行 Xubuntu,它是 Ubuntu 的衍生版本。我正在尝试从这个网站安装一个包: https: //github.com/Zettelkasten-Team/Zettelkasten/releases/ 我下载了源代码(tar.gz)并将存档解压到一个文件夹中,但我不知道接下来要做什么来安装我想要使用的程序,甚至它位于文件夹内的位置。我知道如何在终端上处理基本命令,但当没有给出详细说明时我会迷失方向。
我从这里下载了 scid_vs_pc-4.18.1.tgz:http://scidvspc.sourceforge.net 使用存档管理器解压缩。在名为 scid_vs_pc-4.18.1 的文件夹中打开终端,然后输入 ./configure 并得到以下内容:
jonathan@livingstone ~/Downloads/scid_vs_pc-4.18.1 $ ./configure
Scid vs. PC configure - Makefile configuration program
Tcl/Tk version: 8.6
Your operating system is: Linux 4.13.0-26-generic
Location of "tcl.h": not found
Location of "tk.h": not found
Location of Tcl 8.6 library: /usr/lib/x86_64-linux-gnu
Location of Tk 8.6 library: /usr/lib/x86_64-linux-gnu
Location of X11 library: /usr/lib/x86_64-linux-gnu
Checking if your system already has zlib installed: yes.
Not all settings could be determined! See above for details.
The default Makefile was written. …Run Code Online (Sandbox Code Playgroud) 我将创建一个 shell 脚本文件来压缩主目录中的所有文件,但是在我更改权限后 tar 没有运行。
#!/bin/bash
tar -zxvf homefiles.tar.gz /home/
Run Code Online (Sandbox Code Playgroud)