7Z(1) | User Commands | 7Z(1) |
7zz - Standalone console version of the 7-Zip file archiver
7z <command> [<switch>...] <archive_name> [<file_names>] [@listfile]
7-Zip is a file archiver with a high compression ratio. Supported formats:
You can supply one or more filenames or wildcards for special list files (files containing lists of files). The filenames in such list file must be separated by new line symbol(s). For list files, 7-Zip uses UTF-8 encoding by default. You can change encoding using -scs switch. Multiple list files are supported.
For example, if the file "listfile.txt" contains the following:
then the command
adds to the archive "archive.zip" all "*.cpp" files from directories "My programs" and "Src".
xz(1)
Frequently Asked Questions: <https://www.7-zip.org/faq.html>
Recover corrupted 7z archive: <https://www.7-zip.org/recover.html>
February 14, 2022 | OmniOS |