extract files from rar archives


Extract files with original directory structure

$ unrar x [compressed.rar]

Extract files to a specified path with the original directory structure
$ unrar x [compressed.rar] [path/to/extract]

Extract files into current directory, losing directory structure in the archive
$ unrar e [compressed.rar]

Test integrity of each file inside the archive file
$ unrar t [compressed.rar]

List files inside the archive file without decompressing it
$ unrar l [compressed.rar]


unrar [- -] archive [files...] [path...]


This manual page documents briefly the unrar command. This manual page was written for the Debian GNU/Linux distribution be‐ cause the original program does not have a manual page. Commands and options described here are as of unrar 2.02.


After the program name comes a command and then optional switches with dashes before them. A summary of commands is included below. For a complete description, run unrar without options. e Extract files to current directory. l List archive content. p Print file to stdout. t Test archive files. v Verbosely list archive. x Extract files with full path.


NOTE: Every switch must be separated by a whitespace. You cannot put them together. -av- Disable Authenticity Verification check. -c- Disable comments show. -f Freshen files. -kb Keep broken extracted files. -ierr Send all messages to stderr. -inul Disable all messages. -o+ Overwrite existing files. -o- Do not overwrite existing files. -p Set password. -p- Do not query password. -r Recurse subdirectories. -u Update files. -v List all volumes. -x Exclude specified file. -x@ Exclude files in specified list file. -x@ Read file names to exclude from stdin. -y Assume Yes on all queries.


This manual page was written by Petr Cech according to "unrar -h" for the Debian GNU/Linux system (but may be used by oth‐ ers). 02.11.1999 UNRAR(1)

Copied to clipboard