win10命令符怎么使用tar命令压缩和解压文件夹?

  C:UsersAdministrator>tar --help

  tar(bsdtar): manipulate archive files

  First option must be a mode specifier:

  -c Create -r Add/Replace -t List -u Update -x Extract

  Common Options:

  -b # Use # 512-byte records per I/O block

  -f Location of archive (default \. ape0)

  -v Verbose

  -w Interactive

  Create: tar -c [options] [ |

| @ | -C ]

  ,

add these items to archive

  -z, -j, -J, --lzma Compress archive with gzip/bzip2/xz/lzma

  --format {ustar|pax|cpio|shar} Select archive format

  --exclude Skip files that match pattern

  -C

Change to before processing remaining files

  @ Add entries from to output

  List: tar -t [options] []

   If specified, list only entries that match

  Extract: tar -x [options] []

   If specified, extract only entries that match

  -k Keep (don't overwrite) existing files

  -m Don't restore modification times

  -O Write entries to stdout, don't restore to disk

  -p Restore permissions (including ACLs, owner, file flags)

  bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp