--ignore-command-error ignore exit codes of children --no-ignore-command-error treat non-zero exit codes of children as error -O, --to-stdout extract files to standard output --to-command=COMMAND pipe extracted files to another program Handling of file attributes: --atime-preserve[=METHOD] ...
File wang.tar.gz in the current directory. The correct tar command to extract this file is: A tar zcvf wang.tar.gz B tar zxvf wang.tar.gz C tar jcvf wang.tar.gz D tar jxvf wang.tar.gz 相关知识点: 试题来源: 解析 B 反馈 收藏 ...
Ifyoufollowthesuccessfulmethodabove,ifyouextractit, youwillbeabletosolvethecontentsdirectlyundertest Currentdirectory... Second,whyisthereaproblemwiththegeneralmethod? Pleasepointout... Askingfortarbackupinexclude Halohasbeenresolved #tar-cvzftest.tar.gz--exclude=test/005/test #tar-...
However first make sure that the destination directory exists, since tar is not going to create the directory for you and will fail if it does not exist. 3. Extract a single file To extract a single file out of an archive just add the file name after the command like this $ tar -xz...
To extract all files in the /tmp directory from the archive file on the /dev/rmt2 tape device and use the time of extraction as the modification time, type the following: tar -xm -f/dev/rmt2 /tmp To display the names of the files in the out.tar disk archive file from the curren...
--to-command=COMMAND将解压的文件通过管道传送至另一个程序 操作文件属性: --atime-preserve[=METHOD]在输出的文件上保留访问时间,要么通过在读取(默认 METHOD=‘replace’)后还原时间,要不就不要在第一次(METHOD=‘system’)设置时间 --delay-directory-restore 直到解压结束才设置修改时间和所解目录的权限 ...
You can use multiple-Coptions when you extract files from the archive. When you use multiple-Coptions, each instance of the-CDirectoryis relative to the one that is listed before it in the command. For example, the second-CDirectoryis relative to the first-CDirectory. ...
You can use WildCard to create an archive of all files within a directory Extracting an Archive using the Linux tar command tar -xzvf archiveToExtract.tar.gz This will extract all files in the archive in the current directory, the only flag that is changed is the -c (for creating) with...
To extract multiple directories from a tar archive, specify those individual directory names at the end of the tar xvf command as shown below. $ tar xvf archive_file.tar /path/to/dir1/ /path/to/dir2/ 1. Use the relevant option z or j according to the compression method gzip or bzip2...
/bin/sh: bzip2: command not found tar: Child returned status 127 tar: Error is not recoverable: exiting now 错误“bzip2: command not found”表明 tar 命令正在尝试使用 bzip2 命令进行压缩,但在我们的 Linux 系统上找不到该命令。 解决办法是安装bzip2。该过程取决于您使用的 Linux 发行版,在我的情况...