Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Linux backup compression commands

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail what the Linux backup compression commands are, and the editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

1. Linux ar command

The Linux ar command is used to create or modify a repository file, or to extract a file from a repository file.

Ar allows you to assemble many files into a single storage file. In the kept file, all member files retain the original attributes and permissions.

Grammar

Ar [- dmpqrtx] [cfosSuvV] [a] [b] [I] [keep files] [member files]

2. Linux bunzip2 command

The Linux bunzip2 command is the extractor for .bz2 files.

Bunzip2 can extract compressed files in .bz2 format. Bunzip2 is actually a symbolic link for bzip2, and executing bunzip2 has the same effect as bzip2-d.

Syntax: bunzip2 [- fkLsvV] [.bz2 zip file]

Parameters:

When unzipped by-f or-- force, if the output file has the same name as the existing file, the default will not overwrite the existing file. To override, use this parameter.

After-k or-- keep is unzipped, the original compressed file is deleted by default. To keep the compressed file, use this parameter.

-s or-- small reduces the amount of memory used when the program is executed.

Detailed information is displayed when-v or-- verbose unzips the file.

-lmaine copyright licenseMany V or-- version displays version information.

Example

Extract the .bz2 file

# bunzip2-v temp.bz2 / / decompress the file to display detailed processing information

3. Linux bzip2 command

The Linux bzip2 command is a zip program for .bz2 files.

Bzip2 adopts a new compression algorithm, and the compression effect is better than the traditional LZ77/LZ78 compression algorithm. If no parameters are added, bzip2 will produce a .bz2 compressed file after compressing the file and delete the original file.

Grammar

Bzip2 [- cdfhkLstvVz] [--repetitive-best] [--repetitive-fast] [- Compression level] [File to be compressed]

4. Linux bzip2recover command

The Linux bzip2recover command is used to repair corrupted .bz2 files.

Bzip2 compresses files in chunks, each of which is treated as a separate unit. Therefore, when a block is damaged, you can use bzip2recover to try to separate the blocks in the file in order to decompress the normal blocks. It usually applies only in cases where the compressed file is very large.

Grammar

Bzip2recover [.bz2 zip file]

5. Linux gunzip command

The Linux gunzip command is used to extract the file.

Gunzip is a widely used decompression program that is used to unzip files that have been compressed by gzip. These compressed files have a default extension of ".gz". In fact, gunzip is the hard connection of gzip, so whether it is compressed or decompressed, it can be done separately through the gzip instruction.

Grammar

Parameters:

Gunzip [- acfhlLnNqrtvV] [- s] [file.] Or gunzip [- acfhlLnNqrtvV] [- s] [directory]

6. Linux unarj command

The Linux unarj command is used to extract the .arj file.

Unarj is a compressed program for .arj compressed files.

Grammar

Unarj [eltx] [.arj zip file]

7. Linux compress command

The Linux compress command is a fairly old unix file compression directive. Compressed files are marked with a .Z extension to distinguish uncompressed files. Compressed files can be unzipped with uncompress. If you want to compress several files into one compressed file, you must first tar the files and then compress them. As gzip can produce a better compression ratio, most people have changed to gzip as a file compression tool.

Grammar

Compress [- dfvcV] [- b maxbits] [file...]

8. Linux cpio command

The Linux cpio command is used to back up files.

Cpio is a tool used to create and restore backup files. It can add and unlock files in cpio or tra backup files.

Grammar

Cpio [- 0aABckLovV] [- C] [- F] [- H] [--block-size=] [--force-local] [--help] [--quiet] [--version] or cpio [- bBcdfikmnrsStuvV] [- C] [- E] [- F] [- H] [- I] [- M] [- R] [--block-size=] [--force-local] [--help] [--no-absolute-filenames] [--no-preserve- Owner] [--only-verify-crc] [--quiet] [--sparse] [--version] [template style.] Or cpio [- 0adkiLmpuvV] [- R] [--help] [--no-preserve-owner] [--quiet] [--sparse] [--version] [destination]

9. Linux dump command

The Linux dump command is used to back up the file system.

Dump is a backup utility program that backs up a directory or entire file system to a specified device or to a large file.

Grammar

Dump [- cnu] [- 0123456789] [- b] [- B] [- d] [- f] [- h] [- s] [- T] [directory or file system] or dump [- wW]

10. Linux uuencode command

The Linux uuencode command is used to restore uuencode-encoded files.

In the early days, the transport protocols in many unix systems could only transmit seven-bit characters, and did not support binary files. For example, Chinese text files used eight bits, so they could not be completely sent to another machine. The uuencode instruction converts a binary file into a seven-bit file, transfers it to another machine, and then restores it with uudecode. The most common is used to send binary files by email. The data encoded by uuencode starts with begin and ends with end.

Grammar

Compress [required parameters] [Select parameters] [directory or file]

11. Linux gzexe command

The Linux gzexe command is used to compress the execution file.

Gzexe is a program used to compress execution files. When you execute a compressed execution file, the file is automatically unzipped and then continues to execute, just like using a normal execution file.

Grammar

Gzexe [- d] [execution file.]

12. Linux gzip command

The Linux gzip command is used to compress files.

Gzip is a widely used compression program that compresses files with the extension ".gz" after their names.

Grammar

Gzip [- acdfhlLnNqrtvV] [- S] [-] [--best/fast] [file.] Or gzip [- acdfhlLnNqrtvV] [- S] [-] [--best/fast] [directory]

13. Linux lha command

The Linux lha command is used to compress or extract files.

Lha is a compression program evolved from lharc, after which files are compressed to produce additional compressed files with the ".lzh" extension.

Grammar

Lha [- acdfglmnpqtuvx] [- a / u] [- d] [- I] [- o] [- w =] [- z] [compressed file] [file.] Or lha [- acdfglmnpqtuvx] [- a / u] [- d] [- I] [- o] [- w =] [- z] [compressed file] [directory.]

14. Linux restore command

The Linux restore command is used to restore the file or the entire file system (a partition) backed up by the dump operation.

The operation performed by the restore directive is the opposite of the dump directive. The dump operation can be used to back up files, while the restore operation is to write back the backed up files.

Grammar

Restore [- cCvy] [- b] [- D] [- f] [- s] or restore [- chimvy] [- b] [- f] [- s] or restore [- crvy] [- b] [- f] [- s] or restore [- cRvy] [- b] [- D] [- f] [- s] or restore [chtvy] [- b] [- D] [- f] [- s]. Or restore [- chmvxy] [- b] [- D] [- f] [- s] [file.]

15. Linux tar command

The Linux tar command is used to back up files.

Tar is a tool used to create and restore backup files. It can join and unlock the files in the backup files.

Grammar

Tar [- ABcdgGhiklmMoOpPrRsStuUvwWxzZ] [- b] [- C] [- f] [- F] [- K] [- N] [- T] [- V] [- X] [--after-date=] [--atime-preserve] [--backuup=] [--checkpoint] [--confirmation] [--delete] [--exclude=] [--force-local] [--group=] [--help] [--ignore-failed-read] [-- -new-volume-script=] [--newer-mtime] [--no-recursion] [--null] [--numeric-owner] [--owner=] [--posix] [--erve] [--preserve-order] [--preserve-permissions] [--recursive-unlink] [--remove-files] [--rsh-command=] [--same-owner] [--suffix=] [--totals] [--use-compress-program=] [--version ] [--volno-file=] [file or directory.]

16. Linux uudecode command

Linuxuudecode will restore the uuencode-encoded files, uudecode will only restore the encoded data between begin and end tags, and the program will skip the data other than the tags.

Grammar

Uuencode [- hv] [file1...]

17. Linux unzip command

The Linux unzip command is used to extract the zip file

Unzip is an unzipping program for .zip compressed files.

Grammar

Unzip [- cflptuvz] [- agCjLMnoqsVX] [- P] [.zip file] [file] [- d] [- x] or unzip [- Z]

18. Linux zip command

The Linux zip command is used to compress files.

Zip is a widely used compression program that compresses files to produce additional compressed files with the ".zip" extension.

Grammar

Zip [- AcdDfFghjJKlLmoqrSTuvVwXyz$] [- b] [- ll] [- n] [- t] [-] [compressed file] [file.] [- I] [- x]

19. Linux zipinfo command

The Linux zipinfo command is used to list compressed file information.

Execute the zipinfo instruction to learn the details of the zip zip file.

Grammar

Zipinfo [- 12hlmMstTvz] [compressed file] [file...] [- x]

This is the end of this article on "what are the Linux backup compression commands?". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report