Linux lha command details how to use Linux lha command

Source: Internet
Author: User

Lha is a compression program evolved from lharc. After files are compressed, other compressed files with the ". lzh" extension will be generated.

Syntax

Lha [-acdfglmnpqtuvx] [-a <0/1/2>/u </0/1/2>] [-<a/c/u> d] [-<e/x> i] [-<a/u> o] [-<e/x> w = <target Directory>] [-<a/u> z] [compressed file] [file ...]

Or lha [-acdfglmnpqtuvx] [-a <0/1/2>/u </0/1/2>] [-<a/c/u> d] [-<e/x> I] [-<a/u> o] [-<e/x> w = <target Directory>] [-<a/u> z] [compressed file] [directory...]

Parameters:

  • -A or a: compress the file and add it to the compressed file.

  • -A <0/1/2>/u </0/1/2> uses different file headers to compress files.

  • -C or c: compress the file, re-create the new compressed file, and then add it.

  • -D or d: delete the specified file from the compressed file.

  • -<A/c/u> d or <a/c/u> d: compress the file, add it to the file, re-construct the file, update the compressed file, or delete the original file, that is, move the file to the compressed file.

  • -E or e unzipping the compressed file.

  • -F or f forcibly execute the lha command. During decompression, the existing files are overwritten without asking.

  • -G or g adopts a common compression format to facilitate compatibility.

  • -When <e/x> I or <e/x> I uncompress a compressed file, the path of the file stored in the compressed file is ignored, directly decompress it and store it in the current directory or specified directory.

  • -L or l lists information about compressed files.

  • -M or m. This parameter has the same effect as the "-ad" parameter.

  • -N or n: do not execute the command. Only actions performed during actual execution are listed.

  • -<A/u> o or <a/u> o adopts the lharc compatible format to add the compressed files and update the compressed files.

  • -P or p is output from the compressed file to the standard output device.

  • -Q or q does not display the instruction execution process.

  • -T or t check whether each file in the backup file is correct.

  • -U or u replace the newer file into the compressed file.

  • -U </0/1/2> or u </0/1/2> adopts different file headers during file compression, and then updates them to the compressed file.

  • -V or v lists detailed information about compressed files.

  • -<E/x> w = <target Directory> or <e/x> w = <target Directory> specify the decompressed directory.

  • -X or x unzipping the compressed file.

  • -If <a/u> z or <a/u> z does not compress the file, add it directly and update the compressed file.

Instance

Shrink files

# Lha-a abc. lhz a. B // compress the. B file and compress it to generate the abc. lhz file.

Compressed Directory

# Lha-a abc2/home/hnlinux

Decompress the file to the current directory.

# Lha-xiw = agis abc // extract the file abc

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.