Using GNU Privacy Guard Tools
You can manage your PGP keys on linux using the commands below.
# List keys
gpg --list-keys
gpg --list-secret-keys
# Delete keys
gpg --delete-key email.address
gpg --delete-secret-key email.address
# Create key
gpg --full-generate-key
gpg --gen-key
# Get keys
gpg --output public.key --armor --export email.address
gpg --output private.key --armor --export-secret-key email.address
# Store key
gpg --import public.key
gpg --import private.key
# Encrypt some file
gpg --encrypt --recipient KEY_UID --output encrypted.gpg text_file
# Decrypt some file (first import secrect key)
gpg --decrypt encrypted.gpg
gpg --decrypt --output text_file encrypted.gpg