Examples
1. a-Add
添加目录, 包含
subdir\前缀7z a archive1.zip subdir\or7z a archive1.zip subdir\*subdir/ ├── 1-2/ │ └── 1.txt ├── 1.txt └── 2.txt
添加目录, 不包含
subdir\前缀7z a archive2.zip .\subdir\*subdir/ ├── 1-2/ │ └── 1.txt ├── 1.txt └── 2.txt
添加文件
7z a subdir.7z new.txt

2. x-Extract
解压到当前目录
7z x archive2.zip
folder/ └── archive2.zip├── 1-2/ │ └── 1.txt ├── 1.txt ├── 2.txt ├── new.txt └── archive2.zip解压到指定目录下
7z x archive2.zip -oarchive2
folder/ └── archive2.zipfolder/ ├── archive2/ │ ├── 1-2/ │ │ └── 1.txt │ ├── 1.txt │ ├── 2.txt │ └── new.txt └── archive2.zip