Forrest logo
back to the unar tool

unar:tldr:006c9

unar: Force rename if files to be unpacked already exist.
$ unar -r ${archive}
try on your machine

The command "unar -r ${archive}" is used to extract the files and folders from a compressed archive.

Here's a breakdown of each component:

  • "unar": This is the command that stands for "unarchive". It is commonly used on Unix-like systems to extract files from various types of archives.
  • "-r": This is an option/flag that is passed to the "unar" command. In this case, it specifies that the extraction should be recursive. This means that if the archive contains subdirectories, the command will extract all the files and folders within those subdirectories as well.
  • "${archive}": This is a variable placeholder that should be replaced with the actual name or path of the archive file you want to extract. The command expects you to provide the name or path of the specific archive file you want to extract.

So, when you run the command "unar -r ${archive}", the "unar" command will recursively extract all the files and folders from the specified archive file.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the unar tool