Skip to content

Commit

Permalink
7z
Browse files Browse the repository at this point in the history
  • Loading branch information
magicianlib committed Apr 11, 2024
1 parent b3d40ff commit e75368e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 文件压缩与解压/7z 解压缩命令以及加密.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ rn : 重命名文件压缩文档中某个文件名
**命令格式:**

```
7z a [-p{Password}] [-mhe] archive_name.7z file1 file2 ...
7z a [-p{Password}] [-mhe] [-sdel] archive_name.7z file1 file2 ...
```

`-p` 指定加密密码,如果需要加密直接在 `-p` 后面写上密码即可,`-p` 和密码(Password)之间不要有空格。另外当你使用 `-p` 命令时,强烈建议你加上 `-mhe` 参数,用于隐藏头文件信息。

至于 `-sdel`,则是用于压缩完成后删除源文件。

我当前目录下有一个 file1.txt 文件,下面就以该文件进行测试。

## 创建压缩文件
Expand Down

0 comments on commit e75368e

Please sign in to comment.