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 -encoding option 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 by lsar. numbers instead of names, iykyk ๐Ÿ”ข
  • -nr, -no-recursion โ€” do not attempt to extract archives contained in other archives. for instance, when unpacking a .tar.gz file, only unpack the .tar file 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. visible creates AppleDouble files with the extension ".rsrc", hidden creates AppleDouble files with the prefix "._", and skip discards all resource forks. defaults to visible. 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, -r and -s are 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 ๐Ÿ‘‘โญ