@Beef
Yeps you are right. but I assumend the basic options would be the same between the different OS-es
@Anubis
depends wether you want recursion or not
without:
Code:
7z a result.7z directoryname
with
Code:
7z a -r result.7z direcotryname
offcourse you can specify -m parameter to improve compression
here are some useful options
Code:
7-Zip 4.33 beta *Copyright (c) 1999-2006 Igor Pavlov *2006-02-05
p7zip Version 4.33 (locale=C,Utf16=off,HugeFiles=on)
*
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
* * * [<@listfiles...>]
*
<Commands>
*a: Add files to archive
*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
*-bd: Disable percentage indicator
*-i[r[-|0]]{@listfile|!wildcard}: Include filenames
*-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)
*-m{Parameters}: set compression Method (see the manual)
*-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
*-so: write data to stdout (eg: % 7z a dummy -tgzip Doc.txt > archive.gz)
*-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