Forrest logo
back to context overview

gpg2

List of commands for gpg2:

  • gpg2:tldr:07179 gpg2: Decrypt a specified file, writing the result to the standard output.
    $ gpg2 --decrypt ${path-to-doc-txt-gpg}
    try on your machine
    explain this command
  • gpg2:tldr:1043e gpg2: List imported keys.
    $ gpg2 --list-keys
    try on your machine
    explain this command
  • gpg2:tldr:559db gpg2: Export the private key with a specified email address to the standard output.
    $ gpg2 --export-secret-keys --armor ${alice@example-com}
    try on your machine
    explain this command
  • gpg2:tldr:6015c gpg2: Encrypt a specified file with only a passphrase, writing the output to a new file with `.gpg` appended.
    $ gpg2 --symmetric ${path-to-doc-txt}
    try on your machine
    explain this command
  • gpg2:tldr:b96e2 gpg2: Export the public key of a specified email address to the standard output.
    $ gpg2 --export --armor ${alice@example-com}
    try on your machine
    explain this command
  • gpg2:tldr:dbe3f gpg2: Encrypt a specified file for a specified recipient, writing the output to a new file with `.gpg` appended.
    $ gpg2 --encrypt --recipient ${alice@example-com} ${path-to-doc-txt}
    try on your machine
    explain this command
  • gpg2:tldr:f6b53 gpg2: Import a public key.
    $ gpg2 --import ${path-to-public_key-gpg}
    try on your machine
    explain this command
back to context overview