jaywcjlove / jaywcjlove/linux-command

7z命令有隐藏参数

Open
#586 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Markdown
Stars
36.9k
Forks
6.6k
PR merge metrics
No merged PRs in 30d

Description

以下是我找到的7z的更多的参数:

-mem: AesMode 指定加密算法的类型
aes128
aes192
aes256
ZipCrypto 没听说过这个,所以就搜了搜, 结果第一个就是[加密Zip包(Deflate + ZipCrypto)攻击小结](https://blog.csdn.net/agctXY/article/details/%E9%94%99%E8%AF%AF%E9%93%BE%E6%8E%A5)
-mtc: WriteNtfsTimeExtra 依我看,这是这个开关可以使得7z在压缩文件中写入NTFS系统中一些特殊的变量
-mcl: ForceLocal 这个应该是强制使用本地编码.至于本地编码是从那个环境中获取的,我也不太知道.
-mcu: ForceUtf8 看起来是强制使用Utf8编码,mcu这个缩写,稍微有一点熟悉.
-mcp:
=: 指定编码页
-mrsfx: removeSfxBlock 因为7z有一个生成自解压文件的开关-sfx,会内嵌一份小的(嵌入式 xp)7z在生成的压缩包内.所以这个开关用来移除内嵌的Sfx块,然后将自解压包当作普通压缩包来解压.

### 其中 -mcp=936 解决中文名乱码非常有用

Contributor guide

Open the contributing guide

Research direction

Start by locating the repository's documentation entry for the 7z command. Review the listed options, especially -mcp=936, and add the confirmed parameters with concise explanations; done means the 7z documentation includes these options accurately.

Written by the indexing model from the issue text.

Assessment

Domain
cli, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.