Some of my most used gpg commands…
# Generate a PGP key... gpg --gen-key # Sign a key... gpg --default-key [KEYID-TO-SIGN-WITH] --sign-key [KEYID-TO-BE-SIGNED] # Revoke a key... gpg --edit-key [KEYID] >revkey # List (secret) keys... gpg --list(-secret)-keys # Export a public key in ascii armor format... gpg --armor --export [KEYID] > KeyName_Email_KEYID.pub.asc # Export a private key in ascii armor format... gpg --armor --export-secret-keys [KEYID] > KeyName_Email_KEYID.sec.asc