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 common compression and decompression methods for Linux systems

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the relevant knowledge of "What are the common compression and decompression methods in Linux system". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

.tar

Unpack: tar xvf FileName.tar

Package: tar cvf FileName.tar DirName

(Note: tar is packed, not compressed!)

---------------------------------------------

.gz

Unzip 1: gunzip FileName.gz

Unzip 2: gzip -d FileName.gz

Compression: gzip FileName

.tar.gz

Unzip: tar zxvf FileName.tar.gz

Compression: tar zcvf FileName.tar.gz DirName

---------------------------------------------

.bz2

Unzip 1: bzip2 -d FileName.bz2

Unzip 2: bunzip2 FileName.bz2

Compression: bzip2 -z FileName

.tar.bz2

Unzip: tar jxvf FileName.tar.bz2

Compression: tar jcvf FileName.tar.bz2 DirName

---------------------------------------------

.bz

Unzip 1: bzip2 -d FileName.bz

Unzip 2: bunzip2 FileName.bz

Compression: Unknown

.tar.bz

Unzip: tar jxvf FileName.tar.bz

Compression: Unknown

---------------------------------------------

.Z

Uncompress FileName.Z

Compression: compress FileName

.tar.Z

Decompress: tar Zxvf FileName.tar.Z

Compression: tar Zcvf FileName.tar.Z DirName

---------------------------------------------

.tgz

Unzip: tar zxvf FileName.tgz

Compression: Unknown

.tar.tgz

Decompress: tar zxvf FileName.tar.tgz

Compression: tar zcvf FileName.tar.tgz FileName

---------------------------------------------

.zip

Unzip: FileName.zip

Zip: zip FileName.zip DirName

---------------------------------------------

.rar

Unzip: rar a FileName.rar

Compression: r ar e FileName.rar

rar Please go to http://www.example.com to download! www.rarsoft.com/download.htm

After extracting, copy rar_static to the/usr/bin directory (or any directory specified by the $PATH environment variable):

[root@www2 tmp]# cp rar_static /usr/bin/rar

---------------------------------------------

.lha

Extract: lha -e FileName.lha

Compression: lha -a FileName.lha FileName

lha please go to: www.infor.kanazawa-it.ac.jp/.../ lhaunix/Download!

> After extracting, copy lha to/usr/bin (other directories specified by the $PATH environment variable are also acceptable):

[root@www2 tmp]# cp lha /usr/bin/

---------------------------------------------

.rpm

Unpacking: rpm2cpio FileName.rpm| cpio -div

---------------------------------------------

.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh

.lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea

Extract: sEx x FileName.*

Compression: sEx a FileName.* FileName

sEx only calls related programs, and does not have compression and decompression functions. Please note!

sEx: http://sourceforge.net/projects/sex Download!

After extracting, copy sEx to/usr/bin (other directories specified by the $PATH environment variable are also acceptable):

[root@www2 tmp]# cp sEx /usr/bin/

"Linux system what common compression decompression methods" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

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