unrar (1) - Linux Manuals

unrar: extract files from rar archives


unrar - extract files from rar archives


unrar command [-switch ...] archive [file ...] [@listfiles ...] [path ...] [path_to_extract/]


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


Archive file name in RAR or other supported format. If archive file uses RAR multiple volume format, specify only first volume file name as archive file name.
file ...
File path name to extract. You can specify more path names at one time.
@listfiles ...
If argument starts with "@", unrar uses listfile as file path list file. This list file includes file path list to extract from archive file. You can use 2 or more list files at one time.
File list uses one line for one file path. And blank line is ignored.
This file is used to extract many file path names in one time that your shell can't accept.
If last argument is ended with "/", unrar uses path_to_extract as file extraction target path.


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.
Extract files to current directory.
List archive content [technical[all], bare].
Print file to stdout.
Test archive files.
Verbosely list archive [technical[all], bare].
Extract files with full path.


NOTE: Every switch must be separated by a whitespace. You cannot put them together.
Stop switches scanning.
Disable [enable] file lists.
Alternate destination path
Generate archive name using the current date.
Ignore file attributes.
Set path inside archive.
Disable comments show.
Disable read configuration.
Convert names to lower case.
Convert names to upper case.
Open shared files.
Exclude paths from names.
Expand paths to full name.
Freshen files.
Display or disable messages.
Keep broken extracted files.
Send all messages to stderr.
Disable all messages.
Additionally filter included files.
Read additional filter masks from stdin.
Read additional filter masks from list file.
Overwrite existing files.
Do not overwrite existing files.
Process symbolic links as the link [absolute paths].
Rename files automatically.
Save or restore file owner and group.
Set password.
Do not query password.
Recurse subdirectories.
Specify the character set.
Process files with size less than specified.
Process files with size more than specified.
Process files modified after <d> YYYYMMDDHHMMSS date.
Process files modified before <d> YYYYMMDDHHMMSS date.
Process files newer than <t> time.
Process files older than <t> time.
Save or restore time (modification, creation, access, preserve).
Update files.
List all volumes.
File version control.
Pause before each volume.
Exclude specified file.
Exclude files in specified list file.
Read file names to exclude from stdin.
Assume Yes on all queries.


UnRAR (and RAR) configuration file.
Syntax: (switches for all commands)
switches=<any RAR switches separated by spaces>
Syntax: (switches for specific command)
switches_<command>=<any RAR switches separated by spaces>
switches=-m5 -s
switches_a=-m5 -s


This manual page was written by Petr Cech <cech [at] debian.org> according to "unrar" for the Debian GNU/Linux system (but may be used by others).