gpg --list-secret-keys

Category: Security & Hardening

gpg --list-secret-keys

List secret keys in your keyring

Lists the private keys you own, identified with sec in the first column. Secret keys are the ones that sign and decrypt, so protect them with a strong passphrase. Use gpg --export-secret-keys to back them up.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.