nerdexam
Linux_Foundation

LFCS · Question #401

Which GPG command will publish a public key to a public key server?

The correct answer is C. gpg sendkeys UID. The gpg sendkeys command is the correct utility for publishing a public key to a public key server, making it available for others to retrieve.

Submitted by stefanr· Apr 18, 2026Essential Commands

Question

Which GPG command will publish a public key to a public key server?

Options

  • Agpg exportkeys UID
  • Bgpg publishkeys UID
  • Cgpg sendkeys UID
  • Dgpg pushkeys UID

How the community answered

(43 responses)
  • A
    2% (1)
  • B
    5% (2)
  • C
    93% (40)

Why each option

The `gpg sendkeys` command is the correct utility for publishing a public key to a public key server, making it available for others to retrieve.

Agpg exportkeys UID

`gpg exportkeys` is used to output a public key to a file or standard output for local distribution, not directly to a public server.

Bgpg publishkeys UID

`gpg publishkeys` is not a standard GPG command for publishing keys to a server.

Cgpg sendkeys UIDCorrect

The `gpg --send-keys` command is specifically designed to transmit a public key from your local keyring to a configured public key server, allowing others to find and use it for encrypted communication or signature verification.

Dgpg pushkeys UID

`gpg pushkeys` is not a standard GPG command for publishing keys to a server.

Concept tested: GPG public key publishing

Source: https://gnupg.org/documentation/manuals/gnupg/Send-Keys.html

Topics

#GPG#Key Management#Public Key Cryptography#Keyservers

Community Discussion

No community discussion yet for this question.

Full LFCS Practice