UNRAR(1)

πŸ“¦
version 7.2.7 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– UNRAR β€” bestie edition πŸ’–

okay so. you've got a .rar and you need what's inside it. this is the manual page for unrar, the RAR archiver's extractor, and I'm gonna walk you through it like we're texting at 2am. no gatekeeping, periodt. πŸŽ€


✨ NAME ✨

unrar β€” extract files from rar archives. that's the whole job. she extracts. she's an icon. πŸ‘‘


🌸 SYNOPSIS 🌸

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

like… command first, then switches (with dashes, obviously), then the archive, then optionally which files, then optionally where it goes. the order is the vibe. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

this manual page documents briefly the unrar command. (briefly! she said what she said.) it was written for the Debian GNU/Linux distribution because the original program does not have a manual page β€” so bestie, this is the hand-written lore. πŸ“œ

commands and options described here are as of unrar 7.11. if you're on something older, some of this might not match, ngl.

unrar is a program for extracting .rar archives. that's it. that's her whole personality and she ATE. πŸ”₯


🌈 USAGE 🌈

archive

Archive file name in RAR or other supported format. so like, the thing itself.

heads up: if the archive file uses the RAR multiple volume format, specify only the first volume file name as the archive file name. don't go listing all of them, it's giving overthinking. 😭

file ...

File path name to extract. and yes, you can specify more path names at one time β€” plural, queen. 🫢

@listfiles ...

if an argument starts with @, unrar uses listfile as a file path list file. this list file includes the file path list to extract from the archive file. you can use 2 or more list files at one time, no cap.

the file list uses one line for one file path. and blank lines are ignored. ✨

this file is used to extract many file path names in one time that your shell can't accept. so like, when your shell is being dramatic about argument length, this is the escape hatch. 🐚

path_to_extract

if the last argument is ended with /, unrar uses path_to_extract as the file extraction target path. so the trailing slash is the signal. don't forget it or she'll think you meant a file name. πŸ™ˆ


⭐ COMMANDS ⭐

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 β€” she'll spill everything. πŸ’œ

  • e β€” Extract files to current directory.
  • l[t[a],b] β€” List archive content [technical[all], bare].
  • p β€” Print file to stdout.
  • t β€” Test archive files.
  • v[t[a],b] β€” Verbosely list archive [technical[all], bare].
  • x β€” Extract files with full path.

like, e vs x is the classic: e dumps everything flat in your cwd, x keeps the folder structure. choose wisely bestie. πŸ’€


πŸ‘‘ OPTIONS πŸ‘‘

NOTE: Every switch must be separated by a whitespace. You cannot put them together. fr fr, no -xyz combos, she wants her space. 🚫
  • -- β€” Stop switches scanning.
  • -@[+] β€” Disable [enable] file lists.
  • -ad[1,2] β€” Alternate 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 name.
  • -ep4<path> β€” Exclude the path prefix from names.
  • -f β€” Freshen files.
  • -id[c,d,n,p,q] β€” Display or disable messages.
  • -ierr β€” Send all messages to stderr.
  • -inul β€” Disable all messages.
  • -kb β€” Keep broken extracted files.
  • -me[par] β€” Set encryption parameters.
  • -n<file> β€” Additionally filter included files.
  • -n@ β€” Read additional filter masks from stdin.
  • -n@<list> β€” Read additional filter masks from list file.
  • -o+ β€” Overwrite existing files.
  • -o- β€” Do not overwrite existing files.
  • -ol[a,-] β€” Process symbolic links as the link [absolute paths, skip].
  • -om[-|1][=lst] β€” Propagate Mark of the Web.
  • -op<path> β€” Set the output path for extracted files.
  • -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.
  • -si[name] β€” Read data from standard input (stdin).
  • -sl<size> β€” Process files with size less than specified.
  • -sm<size> β€” Process files with size more than specified.
  • -ta[mcao]<d> β€” Process files modified after <d> YYYYMMDDHHMMSS date.
  • -tb[mcao]<d> β€” Process files modified before <d> YYYYMMDDHHMMSS date.
  • -tn[mcao]<t> β€” Process files newer than <t> time.
  • -to[mcao]<t> β€” Process files older than <t> time.
  • -ts[m,c,a,p] β€” Save or restore time (modification, creation, access, preserve).
  • -u β€” Update files.
  • -v β€” List all volumes.
  • -ver[n] β€” File version control.
  • -vp β€” Pause before each volume.
  • -x<file> β€” Exclude specified file.
  • -x@<list> β€” Exclude files in specified list file.
  • -x@ β€” Read file names to exclude from stdin.
  • -y β€” Assume Yes on all queries.

that's all 50 of them, every single one, no skipping the "boring" ones because bestie nothing here is boring, it's all ✨lore✨.


πŸŽ€ FILES πŸŽ€

  • $HOME/.rarrc
  • /etc/.rarrc
  • /etc/rar/.rarrc
  • /usr/lib/.rarrc
  • /usr/local/lib/.rarrc
  • /usr/local/etc/.rarrc

all of these are the 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>

Example:

switches=-m5 -s
switches_a=-m5 -s
switches_x=-o+

like set it globally or set it per-command, your call, main character energy either way. 🌟


πŸ”₯ SEE ALSO πŸ”₯


🌸 AUTHORS 🌸

This manual page was written by Petr Cech <cech@debian.org> according to "unrar" for the Debian GNU/Linux system (but may be used by others). thank you Petr, absolute legend, we stan. 🫢


and that's the whole page bestie!! this was UNRAR(1), from the RAR archiver source, dated 2021-11-03 πŸ’–βœ¨ go forth and extract, you've got this. πŸ¦‹πŸ’…πŸŽ€

πŸ“¦ where this page comes from