What is the use of Linux's lha command
Today, I would like to share with you the relevant knowledge about the use of Linux's lha command. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
Linux common command lha command is a compression program evolved from lharc, after the file is compressed, it will produce another compressed file with the .lzh extension.
Lha zips or decompresses files in lzh format
Option-an or a: compress and add to the compressed file. -a/u0/1/2 > different file headers are used when compressing files. -c or c: compress the file, reconstruct the new compressed file, and then add it. -d or d: removes the specified file from the compressed file. -d or d: compress the file and then add it, reconstruct, update the compressed file or, delete the original file, that is, move the file to the compressed file. -e or e: unzip the compressed file. -f or f: forces the lha command to overwrite existing files without asking when unzipping. -g or g: use a common compression format to make it easy to solve compatibility problems. -I or I: when unpacking a compressed file, ignore the file path saved in the compressed file and store it directly in the current directory or in the specified directory. -l or l: lists information about the compressed file. -m or m: this option has the same effect as specifying the-ad option at the same time. -n or n: does not execute the instruction, but lists only the actions that will be performed in the actual execution. -o or o: use lharc compatible format to add compressed files and update compressed files. -p or p: output from a compressed file to a standard output device. -Q or Q: does not show instruction execution. -t or t: check that each file in the backup file is correct. -u or u: replace the newer file into the compressed file. -u0swap 1amp 2 > or u0qqqqq2 >: use different file headers when the file is compressed, and then update it to the compressed file. -v or v: lists the information about the compressed file in detail. -w = or wicked: specify the directory to unzip. -x or x: unpack the compressed file. -z or z: do not compress the file, add it directly, and update the compressed file. The example lha-an abc.lhz a.b # compresses the A.B file, and the compressed abc.lhz file lha-an abc2 / home/hnlinux # compressed directory lha-xiw=agis abc # decompresses the file abc. Above the current directory is all the contents of this article, "what is the use of Linux's lha command?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.