RAR(1)
๐ RAR(1) โ the rar archiver, explained by your resident Unix bestie ๐
okay so. rar โ it's the RAR archiver, manual page section 1. That's the whole vibe. Buckle up bestie, we're going in ๐
โจ NAME โจ
rar โ archive files with compression ๐
(yes that's literally it, that's the whole name line)
๐ธ SYNOPSIS ๐ธ
okay so here's the shape of every single command you'll ever run, no cap:
rar <command> [-<switch 1> -<switch N>] archive [files...]
[@listfiles...] [path_to_extract]
like. command first. switches after, each one with a lil dash in front. archive name. then optionally your files, optionally a listfile starting with @, optionally a path to extract into. iconic. ๐
๐ฆ DESCRIPTION ๐ฆ
so this manual page is a brief rundown of the rar archiver. like, a vibe check, not the whole saga.
it was written for the Debian GNU/Linux distribution specifically, because the original program doesn't come with a manual page at all. so we made one. you're welcome. ๐ซถ
heads up bestie: the commands and options described in here are as of rar 7.22. if you're on a different version, things might've shifted, so don't come for me.
rar is a program for creating and manipulating .rar archives. that's the whole mission statement. create archives, mess with archives, be a little archive gremlin. ๐ง
๐ COMMANDS ๐
so after you type the program name, you give it a command, and then optional switches with dashes in front of them. order matters, periodt.
here's a summary of every command. for the complete description, go run rar -? yourself โ this is the highlight reel, not the director's cut.
aโ Add files to archive. the classic. the main character. ๐cโ Add archive comment. and okay, important detail: comment length is limited to 256 KB. so no, you cannot paste your whole fanfic in there. ๐ญchโ Change archive parameters. can be used with most of the archive modification options. versatile queen. ๐cwโ Write archive comment to a specified file.dโ Delete files from archive. bye bye, deleting you from the group chat. ๐eโ Extract files to current directory. and listen: it does not create any subdirectories. it's giving "everything goes on the floor." ๐fโ Freshen files in archive. it updates those files that changed since they were packed to the archive. and it will not add new files to the archive โ freshening only refreshes what's already there. know the difference bestie, iykyk.i[i|c|h|t]=<string>โ Find string in archives. this one's got optional parameters: case-insensitive (i), case-sensitive (c), hex search (h), and using character tables (t). and if you don't specify any parameters at all, you can use the simplified syntaxi<string>. so many options, so little time. โจkโ Lock archive. any command that intends to change the archive will just be ignored. it's under lock and key, no touching. ๐l[t[a],b]โ List content of archive[technical[all], bare]. soltdisplays the detailed file information in multiline mode. and fun fact: commandslt,ltaandlbare equal tovt,vtaandvbcorrespondingly. same energy, different letters. ๐m[f]โ Move to archive[files only]. and heads up: directories will not be removed if thefmodifier is used and/or the-edswitch is applied. ๐pโ Print file to stdout. straight to your terminal, no chill.rโ Repair archive. for further details look inrar.txt. ๐งrcโ Reconstruct missing volumes using recovery volumes (.revfiles). okay so listen: you need to specify any existing volume as the archive name. for example,rar rc backup.part03.rar. don't skip that part or it won't work, bestie. ๐ญrnโ Rename archived files. glow-up for your filenames. ๐rr[N]โ Add data recovery record. optionally, redundant information (recovery record) may be added to an archive. insurance policy, but for archives. ๐ก๏ธrv[N]โ Create recovery volumes (.revfiles), which can be later used to reconstruct missing files in a volume set. and important: this command has sense only for multivolume archives. for further details look inrar.txt.s[name|-]โ Convert archive to or from SFX. the archive is merged with the SFX-module in the user's home directory. ๐tโ Test archive files. vibe check before you commit. โuโ Update files in archive. adds files not already in the archive and updates files changed since they were packed to the archive. it does both. overachiever behavior. ๐ฅv[t[a],b]โ Verbosely list archive[technical]. yes it's the twin ofl, we already covered that.xโ Extract files with full path. this is the one that actually respects your folder structure. the responsible sibling. ๐
๐ OPTIONS ๐
okay bestie listen UP โ every switch has to be separated by a whitespace. You literally cannot smush them together. No -rf-style mashups here. They do not go together. Not even a little. ๐
-?โ shows the help for commands and switches ๐ same deal as when you type no option at all or type something illegal, honestly.--โ tells RAR "okay that's it, no more switches in this command line โ". Super useful when an archive name or a file name starts with the-character, because otherwise that name gets read as a switch. Rude of it, honestly.-@[+]โ disables file lists[-], or enables them[+].-ad[1,2]โ alternate destination path.-ag[format]โ generates the archive name from the current date and time โจ when you're creating an archive it appends the current date string to the archive name. Iconic for daily backups, fr. For further details look inrar.txt.-aiโ ignore file attributes.-am[s,r]โ archive name and time[save, restore].-ap<path>โ sets the path inside the archive. This path gets merged onto file names when adding files to an archive, and pulled off of file names when extracting. ๐ช-asโ synchronize archive contents. If you use this while archiving, any archived files that aren't in the list of files you're currently adding get deleted from the archive. So convenient when you pair it with-u(update) to keep an archive and an archiving directory in sync. ๐-cfg-โ disables reading configuration and environment.-clโ convert file names to lower case.-cuโ convert file names to upper case.-c-โ disables showing comments.-dfโ delete files after archiving. Paired with theacommand it does exactly what themcommand does. Same energy, different spelling. ๐ซถ-dhโ open shared files. Lets you process files that other applications have opened for writing.-dsโ do not sort files while adding to a solid archive.-dwโ wipe files after archiving.-edโ do not add empty directories.-epโ exclude paths from names.-ep1โ exclude base dir from names.-ep2โ expand paths to full. Stores full file paths (except a drive letter and leading path separator) when archiving.-ep4<path>โ exclude the path prefix from names.-e[+]<attr>โ set file exclude[-]or include[+]attributes.-fโ freshen files. May be used with archive extraction or creation.-hp[password]โ encrypt both file data and headers. The password is case-sensitive ๐ and if you omit the password on the command line, you'll get prompted with the message"Enter password".-ht[b|c]โ select hash type[BLAKE2,CRC32]for the file checksum.-id[c,d,n,p,q]โ display or disable messages.-ierrโ send all messages tostderr.-ilog[name]โ log errors to file.-inulโ disable all messages. (Silence. Blessed, blessed silence. ๐)-ioff[n]โ turn off the PC after completing an operation. The optional[n]parameter specifies a value in minutes โ it shuts down if no user activity is detected. ๐ด-isnd[-]โ control notification sounds.-iverโ display the version number.-kโ lock archive. Any command that intends to change the archive will just be ignored. ๐-kbโ keep broken extracted files.-log[f][=name]โ write names to log file.-m<0..5>โ set compression level (0-store...3-default...5-best). By default rar uses the-m3method (Normal compression).-mc<par>โ set advanced compression parameters. For further details look inrar.txt.-md<size>[k,m,g]โ set dictionary size in KB, MB or GB.-me[par]โ set encryption parameters.-ms[ext;ext]โ specify file types (extensions) to store.-mt<threads>โ set the number of threads. If you don't specify this switch, RAR will try to detect the number of available processors and pick the optimal number of threads automatically. She's self-sufficient like that ๐-mlpโ use large memory pages, if supported by the system. Can improve compression performance when using large dictionaries.-n<file>โ additionally filter included files.-n@โ read additional filter masks fromstdin.-n@<list>โ read additional filter masks from a list file.-o+โ overwrite existing files.-o-โ do not overwrite existing files.-ohโ save hard links as the link instead of the file.-oi[0-4][:min]โ save identical files as references.-ol[a,-]โ process symbolic links as the link[absolute path, skip].-op<path>โ set the output path for extracted files.-oniโ allow potentially incompatible names. Permits file names that may be incompatible with the destination file system. โ ๏ธ-om[-|1][=list]โ propagate Mark of the Web.-orโ rename files automatically.-owโ save or restore file owner and group.-p[password]โ encrypt files with the given string as password while archiving. The password is case-sensitive ๐ and if you omit it from the command line, you'll be prompted with the message"Enter password".-qo[-|+]โ add quick open information[none|force].-rโ recurse subdirectories.-r-โ disable recursion.-r0โ similar to-r, but when used with the commands'a','u','f','m'it will recurse subdirectories only for wildcard names.-ri<p>[:<s>]โ set priority and sleep time. Available on Unix and Linux only ๐ง The parameter<p>sets priority (0-default,1-minimum...15-maximum). The optional<s>sets sleep time in milliseconds after each operation.-rr[N]โ add data recovery record.-rv[N]โ create recovery volumes.-sโ create solid archive.-s<N>โ create solid groups using file count. Similar to-s, but reset solid statistics after compressing<N>files.-seโ create solid groups using extension. Similar to-s, but reset solid statistics if the file extension is changed.-svโ create independent solid volumes. Similar to-s, but reset solid statistics as soon as possible when starting a new volume.-sv-โ create dependent solid volumes. Similar to-s, but reset of solid statistics is disabled.-s-โ disable solid archiving.-sc<chr>[obj]โ specify the character set.-sfx[name]โ create SFX archives. The archive is merged with the SFX-module"name"in the user's home directory. The default module is taken from/usr/lib/default.sfx.-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.-tโ test files after archiving. This switch is especially useful together with the move command, since your files only get deleted if the archive has been successfully tested. Safety first, bestie ๐ซถ-ta[mcao]<d>โ process files modified after the<d>YYYYMMDDHHMMSSdate.-tb[mcao]<d>โ process files modified before the<d>YYYYMMDDHHMMSSdate.-tkโ keep original archive time. Stops rar from modifying the archive date when it's changing an archive.-tlโ set archive time to latest file. Forces rar to set the time of a changed archive to the date of the newest file in the archive.-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<size>[b|B|k|K|m|M|g|G|t|T]โ create volumes withsize=<size>*1000[*1024, *1]bytes.-ver[n]โ file version control.-vpโ pause before each volume.-w<path>โ assign work directory.-x<file>โ exclude the specified file. Wildcards may be used and you may specify the switch'-x'several times. Stack 'em up ๐-x@<list>โ exclude the files in the specified list file.-x@โ read file names to exclude fromstdin.-yโ assume Yes on all queries. (No more pop-ups asking you things. Freeing, honestly. ๐)-z[file]โ read archive comment from file. If[file]isn't present, the comment is read fromstdin.
๐ SEE ALSO ๐
The program is documented fully in rar.txt, which you'll find in /usr/share/doc/rar. ๐ฆ
๐ธ AUTHORS ๐ธ
This manual page was written by Petr Cech <cech@debian.org> according to "rar -?" for the Debian GNU/Linux system (but may be used by others). ๐ซถ
and that's the whole page, bestie!! it's RAR(1), dated 2026-05-04, and this is the source/version footer energy you're currently vibing with โจ go forth and archive responsibly, mwah ๐๐๐ฆ
๐ฆ where this page comes from
- ubuntu stonking: rar 2:7.23-1 ยท RAR-EULA
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms