control pax keywords --posix same as --format=posix -V, --label=TEXT create archive with volume name TEXT; at list/extract time, use TEXT as a globbing pattern for volume name Compression options: -a, --auto-co
-m, --touch don't extract file modified time --no-delay-directory-restore cancel the effect of --delay-directory-restore option --no-same-owner extract files asyourself(defaultforordinary users)--no-same-permissions apply the user's umask when extracting permissions from the archive (default ...
-x, --extract, --get 解压,从归档中【解出】文件 -c, --create create a new archive 压缩,创建一个压缩文件 -C, --directory=DIR change to directory DIR 改变至目录 DIR -v, --verbose 详细地列出处理的文件 -f, --file=ARCHIVE 使用归档文件或 ARCHIVE 设备 -z, --gzip, --gunzip, --ungz...
treat them as errors --keep-directory-symlink preserve existing symlinks to directories when extracting --keep-newer-files 不要替换比归档中副本更新的已存在的文件 --no-overwrite-dir 保留已存在目录的元数据 --one-top-level[=DIR] create a subdirectory to avoid having loose files extracted --overwri...
tar -xf archive.tar # Extract all files from archive.tar. 主操作模式: -A, --catenate, --concatenate 追加 tar 文件至归档 -c, --create 创建一个新归档 -d, --diff, --compare 找出归档和文件系统的差异 --delete 从归档(非磁带!)中删除 ...
以下のキーワードは tar --extract に対して適用される: existing-file "%s: 既存ファイルをスキップします" timestamp "%s: あまりにも古いタイムスタンプ %s" "%s: タイムスタンプ %s は %s 秒後の日時を示しています" contiguous-cast "連続したファイル (contiguous files) を普通のフ...
This example demonstrates how to create a compressed tar archive using bzip2. tar -cjvf archive.tar.bz2 directory/ The -j option compresses the archive using bzip2. Extract a Compressed Tar Archive (bzip2)This example shows how to extract files from a bzip2-compressed tar archive. ...
--keep-directory-symlink preserve existing symlinks to directories whenextracting--keep-newer-files不要替换比归档中副本更新的已存在的文件--no-overwrite-dir 保留已存在目录的元数据--one-top-level[=DIR] create a subdirectory to avoid having loose filesextracted--overwrite 解压时重写存在的文件--...
cwdExtract files relative to the specified directory. Defaults toprocess.cwd(). If provided, this must exist and must be a directory. [Alias:C] fileThe archive file to extract. If not specified, then a Writable stream is returned where the archive data should be written. [Alias:f] ...
-U, --unlink-first remove each file prior to extracting over it --recursive-unlink empty hierarchies prior to extracting directory -S, --sparse handle sparse files efficiently -O, --to-stdout extract files to standard output -G, --incremental handle old GNU-format incremental backup -g, -...