Easy Tutorial
❮ Linux Comm Xargs Linux Comm Gitview ❯

Linux lha Command

Linux Command Manual

The Linux lha command is used for compressing or decompressing files.

lha is a compression program derived from lharc. When files are compressed with it, they produce compressed files with the ".lzh" extension.

Syntax

lha [-acdfglmnpqtuvx][-a <0/1/2>/u</0/1/2>][-<a/c/u>d][-<e/x>i][-<a/u>o][-<e/x>w=&lt;destination directory>][-<a/u>z][compressed file][files...] or lha [-acdfglmnpqtuvx][-a <0/1/2>/u</0/1/2>][-<a/c/u>d][-<e/x>i][-<a/u>o][-<e/x>w=&lt;destination directory>][-<a/u>z][compressed file][directories...]

Parameters:

Examples

Compress file:

# lha -a abc.lhz a.b // Compress file a.b, producing the abc.lhz file

Compress directory:

# lha -a abc2 /home/hnlinux

Decompress file to the current directory:

# lha -xiw=agis abc  // Decompress file abc

Linux Command Manual

❮ Linux Comm Xargs Linux Comm Gitview ❯