欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Linux 下解壓 rar 文件的方法

 更新時間:2018年07月02日 10:27:59   作者:xuyaowen  
這篇文章主要介紹了Linux 下解壓 rar 文件的方法,需要的朋友可以參考下

網(wǎng)上下載rar 壓縮文件的使用,在linux在我們需要對其進行解壓縮,這個時候,我們需要安裝 rar相關的文件,來進行解壓縮。

1. 下載

我們進入rarlab網(wǎng)站,進行下載 rar for linux x64

2. 使用 tar 命令 解壓 (*.tar 用 tar –xvf )

Downloads tar -xvf rarlinux-x64-5.6.0.tar.gz 

3. 進入文件夾make (需要 管理員權限)

rar cat makefile 
###################################################################
# Installing RAR executables, configuration files and SFX modules #
# to appropriate directories                   #
###################################################################
PREFIX=/usr/local
install:
  mkdir -p $(PREFIX)/bin
  mkdir -p $(PREFIX)/lib
  cp rar unrar $(PREFIX)/bin
  cp rarfiles.lst /etc
  cp default.sfx $(PREFIX)/lib%   
 

如果不進行make 需要在命令所在的文件夾執(zhí)行命令,或者把文件夾加入環(huán)境變量中。

3. 最后,可以使用 unrar 進行解壓, 使用 rar 命令,進行壓縮。

 ~ unrar x [file]

我們 可以直接輸入 unrar 查看幫助

 rar ./unrar 
UNRAR 5.60 freeware   Copyright (c) 1993-2018 Alexander Roshal
Usage:   unrar <command> -<switch 1> -<switch N> <archive> <files...>
        <@listfiles...> <path_to_extract\>
<Commands>
 e       Extract files without archived paths
 l[t[a],b]   List archive contents [technical[all], bare]
 p       Print file to stdout
 t       Test archive files
 v[t[a],b]   Verbosely list archive contents [technical[all],bare]
 x       Extract files with full path
<Switches>
 -       Stop switches scanning
 @[+]     Disable [enable] file lists
 ad      Append archive name to destination path
 ag[format]  Generate archive name using the current date
 ai      Ignore file attributes
 ap<path>   Set path inside archive
 c-      Disable comments show
 cfg-     Disable read configuration
 cl      Convert names to lower case
 cu      Convert names to upper case
 dh      Open shared files
 ep      Exclude paths from names
 ep3      Expand paths to full including the drive letter
 f       Freshen files
 id[c,d,p,q]  Disable messages
 ierr     Send all messages to stderr
 inul     Disable all messages
 kb      Keep broken extracted files
 n<file>    Additionally filter included files
 n@      Read additional filter masks from stdin
 n@<list>   Read additional filter masks from list file
 o[+|-]    Set the overwrite mode
 ol[a]     Process symbolic links as the link [absolute paths]
 or      Rename files automatically
 ow      Save or restore file owner and group
 p[password]  Set password
 p-      Do not query password
 r       Recurse subdirectories
 sc<chr>[obj] Specify the character set
 sl<size>   Process files with size less than specified
 sm<size>   Process files with size more than specified
 ta<date>   Process files modified after <date> in YYYYMMDDHHMMSS format
 tb<date>   Process files modified before <date> in YYYYMMDDHHMMSS format
 tn<time>   Process files newer than <time>
 to<time>   Process files older than <time>
 ts[m|c|a]   Save or restore file time (modification, creation, access)
 u       Update files
 v       List all volumes
 ver[n]    File version control
 vp      Pause before each volume
 x<file>    Exclude specified file
 x@      Read file names to exclude from stdin
 x@<list>   Exclude files listed in specified list file
 y       Assume Yes on all queries

其他解壓縮命令:

1、*.tar 用 tar –xvf 解壓
2、*.gz 用 gzip -d或者gunzip 解壓
3、*.tar.gz和*.tgz 用 tar –xzf 解壓
4、*.bz2 用 bzip2 -d或者用bunzip2 解壓
5、*.tar.bz2用tar –xjf 解壓
6、*.Z 用 uncompress 解壓
7、*.tar.Z 用tar –xZf 解壓
8、*.rar 用 unrar e解壓
9、*.zip 用 unzip 解壓

總結

以上所述是小編給大家介紹的Linux 下解壓 rar 文件的方法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關文章

  • 詳解Linux服務器配置——搭建SVN服務器

    詳解Linux服務器配置——搭建SVN服務器

    雖然在windows上搭建SVN很簡單,但是效能卻不高,這當然是和linux相比了,本篇文章主要介紹了Linux服務器配置——搭建SVN服務器,具有一定的參考價值,有興趣的可以了解一下。
    2016-12-12
  • 淺談Linux環(huán)境變量文件介紹

    淺談Linux環(huán)境變量文件介紹

    這篇文章主要介紹了淺談Linux環(huán)境變量文件介紹,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2020-04-04
  • LINUX中關于mkdir命令語法和實例解讀

    LINUX中關于mkdir命令語法和實例解讀

    Linux系統(tǒng)中,mkdir命令用于創(chuàng)建新的目錄,支持多種選項如權限設置、遞歸創(chuàng)建等,對于新手和管理員都非常有用,命令的靈活性可以通過各種選項來實現(xiàn)不同的功能,包括設置權限、創(chuàng)建多級嵌套目錄和處理隱藏目錄等,掌握mkdir命令對于提高Linux操作效率和管理文件系統(tǒng)至關重要
    2024-10-10
  • 詳解centos7使用無線wifi連接的方法

    詳解centos7使用無線wifi連接的方法

    本篇文章主要介紹了centos7使用無線wifi連接的方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下。
    2016-12-12
  • 詳解基于Linux的LVM無縫磁盤水平擴容

    詳解基于Linux的LVM無縫磁盤水平擴容

    這篇文章主要介紹了詳解基于Linux的LVM無縫磁盤水平擴容,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2019-06-06
  • Linux下設置防火墻白名單(RHEL 6和CentOS 7)的步驟

    Linux下設置防火墻白名單(RHEL 6和CentOS 7)的步驟

    下面小編就為大家?guī)硪黄狶inux下設置防火墻白名單(RHEL 6和CentOS 7)的步驟。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2016-11-11
  • 安全檢測Unix和Linux服務器安全設置入門精講

    安全檢測Unix和Linux服務器安全設置入門精講

    盡管為服務器設計軟件的軟件工程師們想方設法提高系統(tǒng)的安全性,然而由于系統(tǒng)管理員的水平參差不齊或安全意識底下,往往給黑客提供了入侵的機會。
    2008-05-05
  • linux里daily_routine實例代碼詳解

    linux里daily_routine實例代碼詳解

    在本篇文章里小編給大家整理的是關于linux里daily_routine實例代碼以及相關知識點內(nèi)容,有需要的朋友們參考下。
    2019-09-09
  • Linux下安裝SVN服務端的方法步驟

    Linux下安裝SVN服務端的方法步驟

    這篇文章主要介紹了Linux下安裝SVN服務端的方法步驟,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
    2019-12-12
  • 給Linux定時備份數(shù)據(jù)庫的實現(xiàn)腳本

    給Linux定時備份數(shù)據(jù)庫的實現(xiàn)腳本

    這篇文章主要介紹了Linux定時備份數(shù)據(jù)庫實現(xiàn)方式,如果你的服務器數(shù)據(jù)庫需要實現(xiàn)每天定時備份,那么這篇文章會對你大有幫助,有需要的朋友可以借鑒參考下
    2021-09-09

最新評論