Win10的tar命令所在目录

偶然发现Win10在命令行中竟然有tar命令,在命令行窗口键入“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

在C盘根目录下使用命令“ dir /s tar.* ”查找tar相关的文件(列出许多tar.exe文件),命令执行结果如下:

C:\Users\zhang\AppData\Local\ActiveState\cache\e8a139d4\html\html\lib\Archive 的目录

2021/12/29 21:19 <DIR> Tar

0 个文件 0 字节

C:\Users\zhang\AppData\Local\ActiveState\cache\e8a139d4\lib\Archive 的目录

2021/12/29 21:20 <DIR> Tar

2021/12/29 21:19 77,057 Tar.pm

1 个文件 77,057 字节

C:\Windows\servicing\LCU\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1526.1.5\amd64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_cade3fef214266fe\f 的目录

2022/02/04 00:26 4,781 tar.exe

1 个文件 4,781 字节

C:\Windows\servicing\LCU\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1526.1.5\amd64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_cade3fef214266fe\r 的目录

2022/02/04 00:27 4,300 tar.exe

1 个文件 4,300 字节

C:\Windows\servicing\LCU\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1526.1.5\wow64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_d532ea4155a328f9\f 的目录

2022/02/03 21:55 3,743 tar.exe

1 个文件 3,743 字节

C:\Windows\servicing\LCU\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1526.1.5\wow64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_d532ea4155a328f9\r 的目录

2022/02/03 21:55 3,203 tar.exe

1 个文件 3,203 字节

C:\Windows\System32 的目录

2022/01/13 20:17 54,784 tar.exe

1 个文件 54,784 字节

C:\Windows\SysWOW64 的目录

2022/01/13 20:17 44,544 tar.exe

1 个文件 44,544 字节

C:\Windows\WinSxS\amd64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_cade3fef214266fe 的目录

2022/01/13 20:17 54,784 tar.exe

1 个文件 54,784 字节

C:\Windows\WinSxS\amd64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_cade3fef214266fe\f 的目录

2022/01/07 22:45 4,781 tar.exe

1 个文件 4,781 字节

C:\Windows\WinSxS\amd64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_cade3fef214266fe\r 的目录

2022/01/07 22:46 4,300 tar.exe

1 个文件 4,300 字节

C:\Windows\WinSxS\wow64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_d532ea4155a328f9 的目录

2022/01/13 20:17 44,544 tar.exe

1 个文件 44,544 字节

C:\Windows\WinSxS\wow64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_d532ea4155a328f9\f 的目录

2022/01/07 20:01 3,743 tar.exe

1 个文件 3,743 字节

C:\Windows\WinSxS\wow64_bsdtar_31bf3856ad364e35_10.0.19041.1466_none_d532ea4155a328f9\r 的目录

2022/01/07 20:01 3,203 tar.exe

1 个文件 3,203 字节

所列文件总数:

13 个文件 307,767 字节

2 个目录 31,814,807,552 可用字节

默认使用的应该是“C:\Windows\System32\tar.exe"。

我的电脑的Win10版本信息如下:

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Alexabc3000

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值