CityHost.UA
Help and support

How to unpack an archive using SSH?

To unpack archives of various formats, we recommend using the universal utility unar.

You can see the help for use by executing the command:

 unar --help

To extract the archive to the tmp_extract_dir directory (create the directory if it does not exist and extract to it), use the -o key:

 unar -o tmp_extract_dir/ path_to_archive.zip

To force the contents of the destination directory (tmp_extract_dir) to be overwritten, use the -f switch:

 unar -f -o tmp_extract_dir/ path_to_archive.zip

For archives created in MacOS, use an additional option:

 -forks=skip