📄 lzop_readme.txt
字号:
NAME
lzop - compress or expand files
ABSTRACT
lzop is a file compressor very similar to gzip. lzop favors speed over
compression ratio.
SYNOPSIS
lzop [ *command* ] [ *options* ] [ *filename* ... ]
lzop [-dxlthIVL19] [-qvcfFnNkU] [-o *file*] [-p[*path*]] [-S *suffix*]
[*filename* ...]
DESCRIPTION
lzop reduces the size of the named files. Whenever possible, each file
is compressed into one with the extension .lzo, while keeping the same
ownership modes, access and modification times. If no files are
specified, or if a file name is "-", lzop tries to compress the standard
input to the standard output. lzop will only attempt to compress regular
files or symbolic links to regular files. In particular, it will ignore
directories.
If the compressed file name is too long for its file system, lzop
truncates it.
Compressed files can be restored to their original form using lzop -d.
lzop -d takes a list of files on its command line and decompresses each
file whose name ends with .lzo and which begins with the correct magic
number to an uncompressed file without the original extension. lzop -d
also recognizes the special extension .tzo as shorthand for .tar.lzo.
When compressing, lzop uses the .tzo extension if necessary instead of
truncating a file with a .tar extension.
lzop stores the original file name, mode and time stamp in the
compressed file. These can be used when decompressing the file with the
-d option. This is useful when the compressed file name was truncated or
when the time stamp was not preserved after a file transfer.
lzop preserves the ownership, mode and time stamp of files when
compressing. When decompressing lzop restores the mode and time stamp if
present in the compressed files. See the options -n, -N, --no-mode and
--no-time for more information.
lzop always keeps original files unchanged unless you use the option -U.
lzop uses the *LZO data compression library* for compression services.
The amount of compression obtained depends on the size of the input and
the distribution of common substrings. Typically, text such as source
code or English is compressed into 40-50% of the original size, and
large files usually compress much better than small ones. Compression
and decompression speed is generally much faster than that achieved by
gzip, but compression ratio is worse.
COMPRESSION LEVELS
lzop offers the following compression levels of the LZO1X algorithm:
-3 the default level offers pretty fast compression. -2, -3, -4, -5 and
-6 are currently all equivalent - this may change in a future
release.
-1, --fast
can be even a little bit faster in some cases - but most times you
won't notice the difference
-7, -8, -9, --best
these compression levels are mainly intended for generating
pre-compressed data - especially -9 can be somewhat slow
Decompression is *very* fast for all compression levels, and
decompression speed is not affected by the compression level.
MAIN COMMAND
If no other command is given then lzop defaults to compression (using
compression level -3).
-#, --fast, --best
Regulate the speed of compression using the specified digit #, where
-1 or --fast indicates the fastest compression method (less
compression) and -9 or --best indicates the slowest compression
method (best compression). The default compression level is -3.
-d, --decompress, --uncompress
Decompress. Each file will be placed into same the directory as the
compressed file.
-x, --extract
Extract compressed files to the current working directory. This is
the same as `-dNp'.
-t, --test
Test. Check the compressed file integrity.
-l, --list
For each compressed file, list the following fields:
method: compression method
compressed: size of the compressed file
uncompr.: size of the uncompressed file
ratio: compression ratio
uncompressed_name: name of the uncompressed file
In combination with the --verbose option, the following fields are
also displayed:
date & time: time stamp for the uncompressed file
With --name, the uncompressed name, date and time are those stored
within the compress file if present.
With --verbose, the size totals and compression ratio for all files
is also displayed. With --quiet, the title and totals lines are not
displayed.
Note that lzop defines compression ratio as compressed_size /
uncompressed_size.
--ls, --ls=*FLAGS*
List each compressed file in a format similar to ls -ln.
The following flags are currently honoured: F Append a `*' for
executable files. G Inhibit display of group information. Q Enclose
file names in double quotes.
--info
For each compressed file, list the internal header fields.
-I, --sysinfo
Display information about the system and quit.
-L, --license
Display the lzop license and quit.
-h, -H, --help
Display a help screen and quit.
-V Version. Display the version number and compilation options and
quit.
--version
Version. Display the version number and quit.
Commands are listed in increasing priority here, i.e. -t has priority
over -d, -l over -t, and so on.
OPTIONS
-c, --stdout, --to-stdout
Write output on standard output. If there are several input files,
the output consists of a sequence of independently (de)compressed
members. To obtain better compression, concatenate all input files
before compressing them.
-o *FILE*, --output=*FILE*
Write output to the file *FILE*. If there are several input files,
the output consists of a sequence of independently (de)compressed
members.
-p, -p*DIR*, --path=*DIR*
Write output files into the directory *DIR* instead of the directory
determined by the input file. If *DIR* is omitted, then write to the
current working directory.
-f, --force
Force lzop to
- overwrite existing files
- (de-)compress from stdin even if it seems a terminal
- (de-)compress to stdout even if it seems a terminal
- allow option -c in combination with -U
Using -f two or more times forces things like
- compress files that already have a .lzo suffix
- try to decompress files that do not have a valid suffix
- try to handle compressed files with unknown header flags
Use with care.
-F, --no-checksum
Do not store or verify a checksum of the uncompressed file when
compressing or decompressing. This speeds up the operation of lzop a
little bit (especially when decompressing), but as unnoticed data
corruption can happen in case of damaged compressed files the usage
of this option is not generally recommended. Also, a checksum is
always stored when compressing with one of the slow compression
levels (-7, -8 or -9), regardless of this option.
-n, --no-name
When decompressing, do not restore the original file name if present
(remove only the lzop suffix from the compressed file name). This
option is the default under UNIX.
-N, --name
When decompressing, restore the original file name if present. This
option is useful on systems which have a limit on file name length.
If the original name saved in the compressed file is not suitable
for its file system, a new name is constructed from the original one
to make it legal. This option is the default under DOS, Windows and
OS/2.
-P When decompressing, restore the original path and file name if
present. When compressing, store the relative (and cleaned) path
name. This option is mainly useful when using archive mode - see
usage examples below.
--no-mode
When decompressing, do not restore the original mode (permissions)
saved in the compressed file.
--no-time
When decompressing, do not restore the original time stamp saved in
the compressed file.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -