Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Ubuntu Android Guide useful commands

Harsh Shandilya edited this page Apr 26, 2020 · 2 revisions

Useful Commands

List secret keys

gpg -k

Delete a private key

gpg --delete-secret-key "User Name"

Delete a public key

gpg --delete-key "User Name"

Backup the gpg keys

gpg2 --export-secret-keys > secret.gpg

Restore the gpg keys

gpg2 --import secret.gpg
gpg --edit-key <KEY_ID>
gpg>trust
enter '5'