admin 管理员组文章数量: 887031
Windows命令
1 需求
2 语法
Usage:List: tar -tf <archive-filename>Extract: tar -xf <archive-filename>Create: tar -cf <archive-filename> [filenames...]Help: 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 <filename> Location of archive (default \\.\tape0)-v Verbose-w Interactive
Create: tar -c [options] [<file> | <dir> | @<archive> | -C <dir> ]<file>, <dir> 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 <pattern> Skip files that match pattern-C <dir> Change to <dir> before processing remaining files@<archive> Add entries from <archive> to output
List: tar -t [options] [<patterns>]<patterns> If specified, list only entries that match
Extract: tar -x [options] [<patterns>]<patterns> 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.5.2 - libarchive 3.5.2 zlib/1.2.5.f-ipp
3 示例
4 参考资料
本文标签: Windows命令
版权声明:本文标题:Windows命令 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1687122349h66339.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论