nerdexam
Linux_Foundation

LFCS · Question #403

Which command is used to add an additional name, email address and comment to an existing private key?

The correct answer is A. gpg editkey name followed with the adduid command. To add an additional name, email address, and comment (User ID) to an existing private key, you must use gpg editkey followed by the adduid subcommand.

Submitted by helene.fr· Apr 18, 2026Essential Commands

Question

Which command is used to add an additional name, email address and comment to an existing private key?

Options

  • Agpg editkey name followed with the adduid command.
  • Bgpg addsubkey name
  • Cgpg addalias name
  • Dgpg genalias name

How the community answered

(23 responses)
  • A
    96% (22)
  • D
    4% (1)

Why each option

To add an additional name, email address, and comment (User ID) to an existing private key, you must use `gpg editkey` followed by the `adduid` subcommand.

Agpg editkey name followed with the adduid command.Correct

The `gpg --edit-key <name>` command opens an interactive key management interface, where the `adduid` subcommand can then be used to add an additional User ID, which includes a name, email, and comment, to the selected private key.

Bgpg addsubkey name

`gpg addsubkey` is used to add a new subkey for encryption or signing to an existing primary key, not to add a User ID.

Cgpg addalias name

`gpg addalias` is not a standard GPG command for adding User IDs.

Dgpg genalias name

`gpg genalias` is not a standard GPG command for generating User IDs.

Concept tested: GPG key User ID management

Source: https://gnupg.org/documentation/manuals/gnupg/Manage-Your-Keys.html#Add-User-ID

Topics

#GPG#Key Management#Private Keys#User IDs

Community Discussion

No community discussion yet for this question.

Full LFCS Practice