This article covers how to find the key ID in GnuPG, and is part of a series in communications security.

GnuPG Provides a unique identifier for each key, which you can see when you list keys.

In order to list your keys, run the command

gpg --list-keys

At the top of the output generated by this command there should be a sequence of characters and numbers, which starts out with 5 characters, then a forward slash, then another 8 characters.

The 8 characters at the end are the key id.

This can be used to refer to the key whenever you have a command that operates on your key.