rar is a proprietary file format for file archival and available in
Windows as WinRAR.
rar files can be uncompressed in
unrar tool from the command line.
It's developed by
RARLAB and made available in
Linux and other
Unix based operating systems such as
Steps to extract rar file in Linux:
unrartool using your
Linuxdistributions' package manager.
$ sudo apt update && sudo apt install --assume-yes unrar #Ubuntu and Debian [sudo] password for user: ##### snipped The following NEW packages will be installed: unrar 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 113 kB of archives. After this operation, 400 kB of additional disk space will be used. ##### snipped
$ mkdir directory
$ cd directory
$ unrar x ~/file.rar UNRAR 5.61 beta 1 freeware Copyright (c) 1993-2018 Alexander Roshal Extracting from /home/user/file.rar Creating folder OK Creating folder/sub-01 OK Extracting folder/sub-01/file-01 OK Extracting folder/sub-01/file-02 OK All OK
$ unrar UNRAR 5.71 freeware Copyright (c) 1993-2019 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
$ ls -R .: folder ./folder: sub-01 ./folder/sub-01: file-01 file-02
Comment anonymously. Login not required.