- 论坛徽章:
- 1
|
7z /7za /7zr
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
[<@listfiles...>]
<Commands>
a: Add files to archive #归档
b: Benchmark
d: Delete files from archive
e: Extract files from archive (without using directory names) #解压到当前目录,不保留目录
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full paths #保留目录解压
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives #把单个文件加入归档
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives #从归档中解压单个文件
-o{Directory}: set Output directory
-p{Password}: set Password
-y: assume Yes on all queries
全部选项:
<Switches>
-ai[r[-|0]]{@listfile|!wildcard}: Include archives
-ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
-bd: Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method (see the manual)
-l: don't store symlinks; store the files/directories they point to
CAUTION : the scanning stage can never end because of symlinks like '..'
(ex: ln -s .. ldir)
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
(CAUTION: this flag does not do what you think, avoid using it)
-sfx[{name}]: Create SFX archive
-si[{name}]: read data from stdin
-slt: show technical information for l (List) command
-so: write data to stdout (eg: 7z a dummy -tgzip -so Doc.txt > archive.gz)
-ssc[-]: set sensitive case mode
-t{Type}: Set type of archive
-v{Size}[b|k|m|g]: Create volumes
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[path]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries |
|