📄 lzop_readme.txt
字号:
-S *.suf*, --suffix=*.suf*
Use suffix *.suf* instead of *.lzo*. The suffix must not contain
multiple dots and special characters like '+' or '*', and suffixes
other than *.lzo* should be avoided to avoid confusion when files
are transferred to other systems.
-k, --keep
Do not delete input files. This is the default.
-U, --unlink, --delete
Delete input files after succesfull compression or decompression.
Use this option to make lzop behave like gzip and bzip2. Note that
explicitly giving -k overrides -U.
--crc32
Use a crc32 checksum instead of a adler32 checksum.
--no-warn
Suppress all warnings.
--ignore-warn
Suppress all warnings, and never exit with exit status 2.
-q, --quiet, --silent
Suppress all warnings and decrease the verbosity of some commands
like --list or --test.
-v, --verbose
Verbose. Display the name for each file compressed or decompressed.
Multiple -v can be used to increase the verbosity of some commands
like --list or --test.
-- Specifies that this is the end of the options. Any file name after
-- will not be interpreted as an option even if it starts with a
hyphen.
OTHER OPTIONS
--no-stdin
Do not try to read standard input (but a file name "-" will still
override this option). In old versions of lzop, this option was
necessary when used in cron jobs (which do not have a controlling
terminal).
--filter=*NUMBER*
Rarely useful. Preprocess data with a special "multimedia" filter
before compressing in order to improve compression ratio. *NUMBER*
must be a decimal number from 1 to 16, inclusive. Using a filter
slows down both compression and decompression quite a bit, and the
compression ratio usually doesn't improve much either... More
effective filters may be added in the future, though.
You can try --filter=1 with data like 8-bit sound samples,
--filter=2 with 16-bit samples or depth-16 images, etc.
Un-filtering during decompression is handled automatically.
-C, --checksum
Deprecated. Only for compatibility with very old versions as lzop
now uses a checksum by default. This option will get removed in a
future release.
--no-color
Do not use any color escape sequences.
--mono
Assume a mono ANSI terminal. This is the default under UNIX (if
console support is compiled in).
--color
Assume a color ANSI terminal or try full-screen access. This is the
default under DOS and in a Linux virtual console (if console support
is compiled in).
ADVANCED USAGE
lzop allows you to deal with your files in many flexible ways. Here are
some usage examples:
backup mode
tar --use-compress-program=lzop -cf archive.tar.lzo files..
This is the recommended mode for creating (possibly huge) backups.
Requires GNU tar or a compatible version which accpets the
`--use-compress-program=XXX' option.
single file mode: individually (de)compress each file
create
lzop a.c -> create a.c.lzo
lzop a.c b.c -> create a.c.lzo & b.c.lzo
lzop -U a.c b.c -> create a.c.lzo & b.c.lzo and delete a.c & b.c
lzop *.c
extract
lzop -d a.c.lzo -> restore a.c
lzop -df a.c.lzo -> restore a.c, overwrite if already exists
lzop -d *.lzo
list
lzop -l a.c.lzo
lzop -l *.lzo
lzop -lv *.lzo -> be verbose
test
lzop -t a.c.lzo
lzop -tq *.lzo -> be quiet
pipe mode: (de)compress from stdin to stdout
create
lzop < a.c > y.lzo
cat a.c | lzop > y.lzo
tar -cf - *.c | lzop > y.tar.lzo -> create a compressed tar file
extract
lzop -d < y.lzo > a.c
lzop -d < y.tar.lzo | tar -xvf - -> extract a tar file
lzop -d < y.tar.lzo | tar -tvf - -> list a tar file
list
lzop -l < y.lzo
cat y.lzo | lzop -l
test
lzop -t < y.lzo
cat y.lzo | lzop -t
stdout mode: (de)compress to stdout
create
lzop -c a.c > y.lzo
extract
lzop -dc y.lzo > a.c
lzop -dc y.tar.lzo | tar -tvf - -> list a tar file
archive mode: compress/extract multiple files into a single archive file
create
lzop a.c b.c -o sources.lzo -> create an archive
lzop -P src/*.c -o sources.lzo -> create an archive, store path name
lzop -c *.c > sources.lzo -> another way to create an archive
lzop -c *.h >> sources.lzo -> add files to archive
extract
lzop -dN sources.lzo
lzop -x ../src/sources.lzo -> extract to current directory
lzop -x -p/tmp < ../src/sources.lzo -> extract to /tmp directory
list
lzop -lNv sources.lzo
test
lzop -t sources.lzo
lzop -tvv sources.lzo -> be very verbose
If you wish to create a single archive file with multiple members so
that members can later be extracted independently, you should prefer a
full-featured archiver such as tar. The latest version of GNU tar
supports the --use-compress-program=lzop option to invoke lzop
transparently. lzop is designed as a complement to tar, not as a
replacement.
ENVIRONMENT
The environment variable LZOP can hold a set of default options for
lzop. These options are interpreted first and can be overwritten by
explicit command line parameters. For example:
for sh/ksh/zsh: LZOP="-1v --name"; export LZOP
for csh/tcsh: setenv LZOP "-1v --name"
for DOS: set LZOP=-1v --name
On Vax/VMS, the name of the environment variable is LZOP_OPT, to avoid a
conflict with the symbol set for invocation of the program.
Not all of the options are valid in the environment variable - lzop will
tell you.
SEE ALSO
bzip2(1), gzip(1), tar(1)
Precompiled binaries for some platforms are available from the lzop home
page.
see http://www.oberhumer.com/opensource/lzop/
lzop uses the LZO data compression library for compression services.
see http://www.oberhumer.com/opensource/lzo/
DIAGNOSTICS
Exit status is normally 0; if an error occurs, exit status is 1. If a
warning occurs, exit status is 2 (unless option --ignore-warn is
effect).
lzop's diagnostics are intended to be self-explanatory.
BUGS
Please report all problems immediately to the author.
AUTHOR
Markus Franz Xaver Johannes Oberhumer <markus@oberhumer.com>
http://www.oberhumer.com/opensource/lzop/
COPYRIGHT
lzop and the LZO library are Copyright (C) 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003 by Markus Franz Xaver Johannes Oberhumer.
lzop and the LZO library are distributed under the terms of the GNU
General Public License (GPL).
Legal info: If want to integrate lzop into your commercial
(backup-)system please check the GNU GPL FAQ at
http://www.gnu.org/licenses/gpl-faq.html about possible implications.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -