How to decompress files in centos

Release: 2020-03-17 15:24:32
Original
6244 people have browsed it

How to decompress files in centos

centos decompression zip file:

Recommended: "centos usage tutorial"

1. Install tools that support ZIP

yum install -y unzip zip
Copy after login

2. Unzip the zip file

unzip 文件名.zip
Copy after login

Unzip the rar file:

Enter the command in the terminal:

32 bits:

wget http://www.rarsoft.com/rar/rarlinux-4.0.1.tar.gz
Copy after login

64-bit

wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
Copy after login

Download the corresponding rar installation package. You can see that there is an obvious difference with x64. As for the version number, you can go to the official website and choose it yourself. It works anyway.

After downloading the installation package, the subsequent operations are the same. First, unzip the installation package: you can view the file name and enter

tar -zxvf rarlinux-4.0.1.tar.gz// 对应32位下载的
tar -zxvf rarlinux-x64-5.3.0.tar.gz// 对应64位下载的
Copy after login

to enter the decompressed "rar" folder:

cd rar
Copy after login

Configure:

make
Copy after login

When the following message appears, the installation is successful:

mkdir -p /usr/local/binmkdir -p /usr/local/libcp rar unrar /usr/local/bincp rarfiles.lst /etccp default.sfx /usr/local/lib
Copy after login

Unzip:

rar x test.rar//解压 test.rar 到当前目录
Copy after login

Recommended learning

Linux video tutorial: https://www.php.cn/course/list/33.html

The above is the detailed content of How to decompress files in centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template