This also prevents local files from being overwritten by mistake.Īpack creates archives (or compresses files). The aunpack program overcomes this problem by first extracting files to a unique (temporary) directory, and then moving its contents back if possible. However, some archives contain multiple files in their root directories.
Often one wants to extract all files in an archive to a single subdirectory. Each command can be executed individually or by giving the appropriate options to atool (see Options below).Īunpack extracts files from an archive. These commands are used for managing file archives of various types, such as tar and Zip archives. This manual page document describes the atool commands.
Create a new 7zip archive with two files: atool -add path/to/archive.7z path/to/file1 path/to/file2.
A script for managing file archives of various types Examples (TL DR)