Home >Operation and Maintenance >CentOS >How to decompress files in centos

How to decompress files in centos

尚
Original
2020-03-17 15:24:326280browse

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

2. Unzip the zip file

unzip 文件名.zip

Unzip the rar file:

Enter the command in the terminal:

32 bits:

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

64-bit

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

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位下载的

to enter the decompressed "rar" folder:

cd rar

Configure:

make

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

Unzip:

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

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!

Statement:
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