ZIPTOOL(1) General Commands Manual ZIPTOOL(1) (NAME) ziptool - ZIP libzip (SYNOPSIS) ziptool [-ceghnrst] [-l length] [-o offset] zip-archive command [command-args ...] [command [command-args ...] ...] (DESCRIPTION) ziptool zip-archive . : -c . -e ( -n ). -g ( stat ). -h . -l length length . : -o. -n . : -e. -o offset offset. : -l. -r ( stat ). -s ( stat ). -t ( ). : . (Commands) (zero-based) . . : add name content name content . add_dir name name. add_file name file_to_add offset len name len file_to_add offset. add_from_zip name archivename index offset len name archivename index len offset. cat index index (stdout). count_extra index flags index flags. count_extra_by_id index extra_id flags extra_id index flags. delete index index . delete_extra index extra_idx flags extra_idx index flags. delete_extra_by_id index extra_id extra_index flags extra_index extra_id index flags. get_archive_comment . get_archive_flag flag flag. get_extra index extra_index flags extra_index index flags. get_extra_by_id index extra_id extra_index flags extra_index extra_id index flags. get_file_comment index index . get_num_entries flags flags. name_locate name flags name flags . rename index name index name. replace_file_contents index data index data. set_archive_comment comment comment. set_archive_flag flag value flag value. set_extra index extra_id extra_index flags value extra_index extra_id index flags value. set_file_comment index comment index comment. set_file_compression index method compression_flags index method compression_flags. : compression_flags . set_file_encryption index method password index method password. set_file_mtime index timestamp (mtime) index timestamp. set_file_mtime_all timestamp (mtime) timestamp. set_password password / password. stat index index . (Flags) . . 0 . : 4 ZIP_FL_ENC_CP437 8 ZIP_FL_ENC_UTF_8 C ZIP_FL_NOCASE c ZIP_FL_CENTRAL d ZIP_FL_NODIR l ZIP_FL_LOCAL r ZIP_FL_ENC_RAW s ZIP_FL_ENC_STRICT u ZIP_FL_UNCHANGED (Archive flags) get_archive_flag set_archive_flag : o create-or-keep-empty-file-for-archive o is-torrentzip o rdonly o want-torrentzip (Compression Methods) . : o default o deflate o store (Encryption Methods) . : o none o AES-128 o AES-192 o AES-256 (EXIT STATUS) The ziptool utility exits 0 on success, and >0 if an error occurs. (EXAMPLES) teststring.txt testbuffer.zip "This is a test.\n" "\n" : ziptool testbuffer.zip add teststring.txt testfile.zip: ziptool testfile.zip delete 0 (SEE ALSO) zipcmp(1), zipmerge(1), libzip(3) (HISTORY) ziptool libzip 1.1 . (AUTHORS) Dieter Baron Thomas Klausner Linux 6.12.107+deb13-amd64 January 23, 2023 Linux 6.12.107+deb13-amd64