Linux (Redhat) environment, how to extract rar files?

Source: Internet
Author: User
Tags rar

Requirements Description :

Today a colleague sent over a compressed file, sent to the Linux server, passed up, found to be RAR format

Before the decompression, we found some decompression methods, in this record.

Operation Process :

1. Download RAR installation package in Linux environment

: https://www.rarlab.com/rar/rarlinux-x64-5.5.0.tar.gz

2. Upload the RAR installation package to the server

[[email protected] software]# ls-l rar*-rw-r--r--1 root root 536028 June  4 10:40 rarlinux-x64-5.5.0.tar.gz

3. Unzip the installation package and install it

[Email protected] software]# TAR-ZXF rarlinux-x64-5.5.0.tar.gz [[email protected] software]# CD Rar[[email protected] Ra r]# makemkdir-p/usr/local/binmkdir-p/usr/local/libcp rar unrar/usr/local/bincp RARFILES.LST/ETCCP default.sfx/usr/l Ocal/lib

Note: The software is already installed.

4. Upload rar file for decompression test

[[email protected] test]# ls-ltotal 280-rw-r--r--1 root root 283518 June  4 10:09 Build.rar

[Email protected] test]#rar x Build.rarRAR 5.50 Copyright (c) 1993-2017 Alexander roshal 2017Trial version Type ' rar-? ' for Helpextractin G from build.rarcreating build okextracting BUILD/ASSET-MANIFEST.J   Son ok extracting build/business.json OK extracting                                          Build/favicon.ico OK extracting build/index.html                                           OK extracting Build/manifest.json OK Creating build/resources Okcreating Build/resources/icon okextracting b                         Uild/resources/icon/iconfont.css OK extracting Build/resources/icon/iconfont.eot OK extracting build/resources/icon/iconfont.svg OK extracting build/resources/icon/iconf                 Ont.ttf        OK extracting build/resources/icon/iconfont.woff OK extracting build/service-worker.js OK Creating build/static okcreating Bui                        Ld/static/css okextracting Build/static/css/main.dc903dc2.css OK Creating build/static/js okextracting build/static/js/main.7b35a52f. JS OK Creating Build/static/media okextracting build/s                  Tatic/media/iconfont.715ffea7.ttf OK extracting Build/static/media/iconfont.79c4ad9a.eot OK extracting build/static/media/iconfont.f8b575df.svg OK all ok[[email protected] test]# Ls-lto Tal 284drwxr-xr-x 4 root root 4096 June 4 10:06 build-rw-r--r--1 root root 283518 June 4 10:09 Build.rar

Note: The use of RAR x command has been extracted, and the files are extracted to the build directory, this directory is the name of the RAR file to remove the suffix.

5. You can also unzip the file to the current path, not the build path. Using the rar e command

[[email protected] test]# rm-rf build[[email protected] test]# rar e build.rar rar 5.50 Copyright (c) 1993-20 Alexander roshal 2017Trial version Type ' rar-? ' for helpextracting from build.rarextracting Asse                                             T-manifest.json OK extracting Business.json                                                OK extracting favicon.ico OK extracting index.html OK extracting Manifest.json OK extracting iconf                                              Ont.css OK extracting Iconfont.eot                                              OK extracting iconfont.svg OK extracting iconfont.ttf OK extracting iconfont.woff OK extracting servic             E-worker.js                            OK extracting main.dc903dc2.css OK extracting main.7                                     B35a52f.js OK extracting Iconfont.715ffea7.ttf                                     OK extracting iconfont.79c4ad9a.eot OK extracting iconfont.f8b575df.svg OK all ok[[email protected] test]# ls-ltotal 1468-rw-r--r--1 root root 352 June 4 10: asset-manifest.json-rw-r--r--1 root root 283518 June 4 10:09 build.rar-rw-r--r--1 root root 146 June 4 10:02 Busin ess.json-rw-r--r--1 root root 3870 June 4 10:02 favicon.ico-rw-r--r--1 root root 9788 June 4 10:03 Iconfont.715ffea7 . ttf-rw-r--r--1 root root 9968 June 4 10:03 iconfont.79c4ad9a.eot-rw-r--r--1 root root 10498 June 4 10:02 Iconfont.cs s-rw-r--r--1 root root 9968 June 4 10:02 iconfont.eot-rw-r--r--1 root root 39154 June 4 10:03 Iconfont.f8b575df.svg-r w-r--r--1 root root 39154 June 4 10:02 iconfont.svg-rw-r--r--1 root root 9788 June 4 10:02 iconfont.ttf-rw-r--r--1 root root 6036 June 4 1 0:02 iconfont.woff-rw-r--r--1 root root 552 June 4 10:03 index.html-rw-r--r--1 root root 761199 June 4 10:03 Main.7b3 5a52f.js-rw-r--r--1 root root 277807 June 4 10:03 main.dc903dc2.css-rw-r--r--1 root root 317 June 4 10:02 Manifest.js on-rw-r--r--1 root root 3396 June 4 10:03 Service-worker.js

Note: Extracted files and Build.rar in a path, so use, extract where to look at the use of the scene, is generally rar x

Document creation Time: June 4, 2018 11:24:16

Linux (Redhat) environment, how to extract rar files?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.