Windows下解压tar包文件

下载了Linux kernel源码的tar包文件,使用7zip在Windows下解压。

因为Linux里面有链接(symlinks)文件,直接在Windows平台上解压就会出错。

Cannot create symbolic link : A required privilege is not held by the client. : C:\LinuxKernel\\linux-6.8-rc6\Documentation\Changes

诀窍是以管理员身份运行,因为只有管理员才有权在 Windows 上创建符号链接。为了确认,如果打开 "本地安全策略",然后展开 "本地策略",再点击 "用户权限分配",就会看到 "创建符号链接"。如果双击该链接,就会发现只有管理员组才可以这样做。当我明白了这一点,并在管理员模式下运行 7zip 后,就不再出现错误了,而且还能解压压缩包。

The trick is to run as Administrator because only admin has the rights to create symlinks on Windows. Just to confirm, if you open "Local Security Policy", and then expand "Local Policy" then click on "User Rights Assignment", you'll see "Create symbolic links". If you double-click on that, you'll see that only the Administrators group is able to do that. When I figured this out and ran 7zip in admin mode, I no longer got the error and was able to extract the tarball.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

夜流冰

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

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

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

打赏作者

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

抵扣说明:

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

余额充值