unar(1)
โจ NAME โจ
ok so unar โ she extracts archive file contents ๐ that's it that's the whole job, and she does it flawlessly, no cap ๐ซถ
๐ธ SYNOPSIS ๐ธ
unar [OPTION]... ARCHIVE [FILE]...
๐ฆ DESCRIPTION ๐ฆ
bestie, you give her an ARCHIVE, and optionally some FILEs inside it, and she pulls those files out. Extract FILEs or the contents of ARCHIVE. simple as that, literally ๐
๐ OPTIONS ๐
-o,-output-directory DIRECTORYโ where she drops the goods. this is the directory the contents of the archive get written to. if you don't say anything, it defaults to the current directory. lowkey the default, but you can highkey change it ๐-f,-force-overwriteโ always overwrite files when a file to be unpacked already exists on disk. by default the program asks the user if possible, otherwise skips the file. so like, no questions, just go ๐ฅ-r,-force-renameโ always rename files when a file to be unpacked already exists on disk. she's not deleting anything, she's just giving the new one a glow-up name โจ-s,-force-skipโ always skip files when a file to be unpacked already exists on disk. girl sees a collision and just walks past it ๐ถโ๏ธ๐จ-d,-force-directoryโ always create a containing directory for the contents of the unpacked archive. by default, a directory is created if there is more than one top-level file or folder. so this one is like "no, we're ALWAYS making the folder, periodt" ๐-D,-no-directoryโ never create a containing directory for the contents of the unpacked archive. the opposite vibe, files just spill out wherever, chaotic but valid ๐-p,-password PASSWORDโ the password to use for decrypting protected archives. locked archives, we're getting in ๐๐-e,-encoding ENCODINGโ the encoding to use for filenames in the archive, when it is not known. if not specified, the program attempts to auto-detect the encoding used. and ooh, pro tip: use"help"or"list"as the argument to give a listing of all supported encodings. cute right? ๐-E,-password-encoding ENCODINGโ the encoding to use for the password for the archive, when it is not known. if not specified, then either the encoding given by the-encodingoption or the auto-detected encoding is used. so she'll fall back on whatever she figured out earlier ๐-i,-indexesโ instead of specifying the files to list as filenames or wildcard patterns, specify them as indexes, as output bylsar. numbers instead of names, iykyk ๐ข-nr,-no-recursionโ do not attempt to extract archives contained in other archives. for instance, when unpacking a.tar.gzfile, only unpack the.tarfile and not its contents. archive-ception? not today ๐-t,-copy-timeโ copy the file modification time from the archive file to the containing directory, if one is created. timestamps, preserved, iconic โฐ-k,-forks visible|hidden|skipโ how to handle Mac OS resource forks.visiblecreates AppleDouble files with the extension".rsrc",hiddencreates AppleDouble files with the prefix"._", andskipdiscards all resource forks. defaults tovisible. three whole moods, pick your fighter ๐-q,-quietโ run in quiet mode. she's not gonna yap at you ๐คซ-v,-versionโ print version and exit. quick lil flex and she's out โ๏ธ-h,-helpโ display help information. when you're lost, she's got you ๐ซถ
๐ SEE ALSO ๐
lsar(1)โ her partner in crime, go say hi ๐ง
โ ๏ธ heads up bestie,-f,-rand-sare all fighting over the same job (what to do when a file already exists), so don't be surprised if they clash. pick one and commit ๐
and that's the whole page, mwah ๐ this was written by The Unarchiver, dated 2011-09-26, from the User Commands era of the manual โ vintage, but still serving looks ๐โญ
๐ฆ where this page comes from
- arch rolling: unarchiver 1.10.8-6 ยท LGPL-2.1-only
- debian bookworm: unar 1.10.7+ds1+really1.10.1-2+b2 ยท LGPL-2.1-or-later
- debian trixie: unar 1.10.8+ds1-9 ยท LGPL-2.1-or-later
- epel 9: unar 1.10.8-1.el9 ยท LGPLv2+
- fedora 43: unar 1.10.8-14.fc43 ยท LicenseRef-Callaway-LGPLv2+
- fedora 44: unar 1.10.8-15.fc44 ยท LicenseRef-Callaway-LGPLv2+
- nixos 26.05: unar 1.10.8
- nixpkgs unstable: unar 1.10.8
- opensuse-leap 16.0: unar 1.10.8-160000.2.2 ยท LGPL-2.1-or-later
- opensuse-leap 16.0: unar 1.10.8-160000.2.2 ยท LGPL-2.1-or-later
- opensuse-leap 16.0: unar 1.10.8-160000.2.2 ยท LGPL-2.1-or-later
- opensuse-leap 16.0: unar 1.10.8-160000.2.2 ยท LGPL-2.1-or-later
- ubuntu jammy: unar 1.10.1-2build11 ยท LGPL-2.1-or-later
- ubuntu noble: unar 1.10.7+ds1+really1.10.1-3build1 ยท LGPL-2.1-or-later
- ubuntu questing: unar 1.10.8+ds1-9
- ubuntu resolute: unar 1.10.8+ds1-9build1 ยท LGPL-2.1-or-later
- ubuntu stonking: unar 1.10.8+ds1-10 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms