lha.1 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .TH lha 1
  2. .SH NAME
  3. lha \- compression tool for .lzh archive files.
  4. .SH SYNOPSIS
  5. .B lha [-]{lvtxe[q{num}][finv]}[w=<dir>] archive_file [file...]
  6. .SH DESCRIPTION
  7. .PP
  8. .B lha
  9. is a tool for extracting .lzh archive files. It also supports variants
  10. of the .lzh archive, such as .lzs and .pma.
  11. .PP
  12. This version of the lha tool is part of Lhasa, a free implementation
  13. of the .lzh format.
  14. .PP
  15. .SH COMMAND SYNTAX
  16. The lha tool has an unusual command syntax, compared to most other
  17. Unix commands. The first parameter to the program specifies the command
  18. to perform and all additional options. The second parameter specifies
  19. the path to the archive file to operate on. Following this is a list
  20. of wildcard patterns to match against the filenames of the archived
  21. files.
  22. .PP
  23. The first character of the command parameter specifies the command to
  24. perform, which is one of the following:
  25. .TP
  26. \fB-l\fR
  27. List contents of the specified archive.
  28. .TP
  29. \fB-v\fR
  30. Verbosely list contents of the specified archive.
  31. .TP
  32. \fB-t\fR
  33. Test the integrity of the specified archive: decompress its contents and
  34. check the CRC.
  35. .TP
  36. \fB-e\fR or \fB-x\fR
  37. Extract archive. Files are extracted to the current working directory
  38. unless the 'w' option is specified.
  39. .PP
  40. .SH OPTIONS
  41. The remainder of the command parameter is used to specify additional
  42. options:
  43. .TP
  44. \fBq[012]\fR
  45. Quiet mode. Higher numbers suppress more output. Level 0 is normal
  46. operation. If no number is specified, full suppression (level 2)
  47. is used. The quiet option also turns on the force overwrite option
  48. ('f').
  49. .TP
  50. \fBf\fR
  51. Force overwrite of existing files: do not prompt.
  52. .TP
  53. \fBi\fR
  54. Ignore paths of archived files: extract all archived files to the
  55. same directory, ignoring subdirectories.
  56. .TP
  57. \fBn\fR
  58. Do not perform any actual operations: instead, perform a dry run of
  59. the requested operation and describe what would have been done on
  60. standard output.
  61. .TP
  62. \fBv\fR
  63. Verbose mode: causes extra information to be written to standard
  64. output.
  65. .TP
  66. \fBw=dir\fR
  67. Specify destination directory for extracting files. This must be
  68. the last option of the first parameter.
  69. .SH SEE ALSO
  70. \fBunzip\fR(1),
  71. \fBtar\fR(1),
  72. \fBgzip\fR(1),
  73. \fBbzip2\fR(1)
  74. .SH HISTORY
  75. The .lzh format originated with Kazuhiko Miki's MS\-DOS archive tool,
  76. LArc, using the LZSS algorithm developed by Haruhiko Okumura, and
  77. the .lzs filename extension. The container format was reused for
  78. LHarc, by Haruyasu Yoshizaki (Yoshi), which used a new algorithm
  79. named LZHUF and the .lzh extension. In later versions, LHarc was
  80. renamed to LHA and extended with more effective compression algorithms.
  81. .PP
  82. Versions of the LHA tool were later ported to various different
  83. operating systems, including the Amiga, Atari, MacOS, OS/2 and Unix.
  84. A tool for MSX\-DOS named PMarc reused the container format with a new
  85. compression algorithm (.pma extension).
  86. .PP
  87. The Unix version of the tool was developed by Masaru Oki, Nobutaka
  88. Watazaki and Tsugio Okamoto, but was released under a software
  89. license that does not conform to the Free Software or Open Source
  90. Definitions. Lhasa was developed as a drop\-in replacement that is
  91. Free Software and Open Source.
  92. .SH BUGS
  93. The current version does not allow the creation of new archive files.
  94. .PP
  95. Some obscure compression algorithms are not currently supported
  96. (\-lh2\-, \-lh3\-, \-lx1\-, \-lhx\-).
  97. .SH AUTHOR
  98. Lhasa was written and is maintained by Simon Howard.
  99. .SH COPYRIGHT
  100. Copyright \(co 2011, 2012 Simon Howard.
  101. .PP
  102. Permission to use, copy, modify, and/or distribute this software
  103. for any purpose with or without fee is hereby granted, provided
  104. that the above copyright notice and this permission notice appear
  105. in all copies.
  106. .PP
  107. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  108. WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  109. WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  110. AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
  111. CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  112. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  113. NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  114. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.