← 返回命令列表

Linux command

zipnote 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Show file comments

zipnote [archive.zip]

Edit comments

zipnote [archive.zip] > [notes.txt] && vim [notes.txt] && zipnote -w [archive.zip] < [notes.txt]

Write comments from file

zipnote -w [archive.zip] < [notes.txt]

说明

zipnote reads and writes comments stored in ZIP archives. ZIP files support per-file comments and an overall archive comment, and zipnote provides a way to view and modify these metadata fields from the command line. In read mode (the default), zipnote outputs a structured listing of all filenames and their associated comments. The output uses a specific format with @ markers separating entries, which can be redirected to a file for editing. In write mode (-w), zipnote reads the modified structured format from standard input and updates the archive's comments accordingly. This workflow allows batch editing of comments across all files in an archive. zipnote is part of the Info-ZIP suite of utilities.

参数

-w
Write mode.
-b _PATH_
Temp file path.
-h
Show help.
-v
Show version.

FAQ

What is the zipnote command used for?

zipnote reads and writes comments stored in ZIP archives. ZIP files support per-file comments and an overall archive comment, and zipnote provides a way to view and modify these metadata fields from the command line. In read mode (the default), zipnote outputs a structured listing of all filenames and their associated comments. The output uses a specific format with @ markers separating entries, which can be redirected to a file for editing. In write mode (-w), zipnote reads the modified structured format from standard input and updates the archive's comments accordingly. This workflow allows batch editing of comments across all files in an archive. zipnote is part of the Info-ZIP suite of utilities.

How do I run a basic zipnote example?

Run `zipnote [archive.zip]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -w do in zipnote?

Write mode.