In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what the decompression command in linux is, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Linux decompression commands: 1, tar command; 2, gunzip or gzip command; 3, bzip2 or bunzip2 command; 4, uncompress command; 5, unzip command; 6, rar command; 7, lha command; 8, rpm2cpio command; 9, sEx command.
The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, Dell G3 computer.
Common Linux command: extract tar command
.tar
Unpack: tar xvf FileName.tar package: tar cvf FileName.tar DirName (Note: tar is packaging, not compression! )
.tar.xz
Unpack: tar xvf FileName.tar.xz package: tar cvf FileName.tar DirName
.tar.gz and .tgz
Decompression: tar zxvf FileName.tar.gz compression: usage of various decompressed files under tar zcvf FileName.tar.gz DirNamelinux
.xz
Unpack: tar xvf FileName.tar.xz package: tar cvf FileName.tar DirName
.tar
Unpack: tar xvf FileName.tar package: tar cvf FileName.tar DirName (Note: tar is packaging, not compression! )
.gz
Decompress 1:gunzip FileName.gz decompress 2:gzip-d FileName.gz Compression: gzip FileName
.tar.gz and .tgz
Decompress: tar zxvf FileName.tar.gz Compression: tar zcvf FileName.tar.gz DirName
.bz2
Extract 1:bzip2-d FileName.bz2 decompress 2:bunzip2 FileName.bz2 Compression: bzip2-z FileName
.tar.bz2
Decompress: tar jxvf FileName.tar.bz2 or tar-- bzip xvf FileName.tar.bz2 Compression: tar jcvf FileName.tar.bz2 DirName
.bz
Extract 1:bzip2-d FileName.bz decompress 2:bunzip2 FileName.bz Compression: unknown
.tar.bz
Decompression: tar jxvf FileName.tar.bz compression: unknown
.Z
Decompress: uncompress FileName.Z Compression: compress FileName
.tar.Z
Decompress: tar Zxvf FileName.tar.Z Compression: tar Zcvf FileName.tar.Z DirName
.zip
Decompress: unzip FileName.zip Compression: zip FileName.zip DirName
Compress a directory using the-r parameter,-r recursion. Example: $zip-r FileName.zip DirName
.rar
Decompress: rar x FileName.rar Compression: rar a FileName.rar DirName
Rar can be downloaded at http://www.rarsoft.com/download.htm!
After decompressing, copy rar_static to the / usr/bin directory (other directories specified by the $PATH environment variable are also acceptable):
[root@www2 tmp] # cp rar_static / usr/bin/rar
.lha
Decompress: lha-e FileName.lha Compression: lha-a FileName.lha FileName lha please go to: http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/ download! > after decompression, copy lha to the / usr/bin directory (other directories specified by the $PATH environment variable are also acceptable): [root@www2 tmp] # cp lha / usr/bin/
.rpm
Unpack: rpm2cpio FileName.rpm | cpio-p
.deb
Unpack: ar p FileName.deb data.tar.gz | tar zxf-
.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
Decompress: sEx x FileName.* Compression: sEx a FileName.* FileName
SEx only calls the relevant procedures, there is no compression, decompression function, please pay attention!
SEx can be downloaded from http://sourceforge.net/projects/sex.
After decompressing, copy sEx to the / usr/bin directory (other directories specified by the $PATH environment variable are also acceptable):
[root@www2 tmp] # cp sEx / usr/bin/ above is all the content of this article "what are the decompression commands in linux?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.