← 返回命令列表

Linux command

gpg-zip 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Encrypt directory with symmetric encryption

gpg-zip --symmetric --output [archive.gpg] [directory]

Encrypt for a recipient

gpg-zip --encrypt --output [archive.gpg] --gpg-args "-r [recipient]" [directory]

Decrypt an archive

gpg-zip --decrypt [archive.gpg]

List archive contents

gpg-zip --list-archive [archive.gpg]

Sign and encrypt

gpg-zip --encrypt --sign --output [archive.gpg] [directory]

说明

gpg-zip encrypts or signs files into an archive using GnuPG. It combines tar archiving with GPG encryption in a format compatible with PGP Zip, supporting both symmetric (passphrase) and asymmetric (public-key) encryption. This tool is deprecated in favor of gpgtar, which provides the same functionality with better integration into the modern GnuPG suite.

参数

-e, --encrypt
Encrypt data.
-d, --decrypt
Decrypt data.
-c, --symmetric
Encrypt with symmetric cipher using passphrase.
-s, --sign
Sign data.
--list-archive
List archive contents.
-o, --output _file_
Output file.
--gpg-args _args_
Pass options to gpg.
--tar _command_
Use alternative tar command.

FAQ

What is the gpg-zip command used for?

gpg-zip encrypts or signs files into an archive using GnuPG. It combines tar archiving with GPG encryption in a format compatible with PGP Zip, supporting both symmetric (passphrase) and asymmetric (public-key) encryption. This tool is deprecated in favor of gpgtar, which provides the same functionality with better integration into the modern GnuPG suite.

How do I run a basic gpg-zip example?

Run `gpg-zip --symmetric --output [archive.gpg] [directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -e, --encrypt do in gpg-zip?

Encrypt data.