Forrest logo
back to context overview

gpg

List of commands for gpg:

  • gpg:ai:15453 This command will list all primary keys along with their expiration dates
    $ gpg --list-keys --with-colons --fixed-list-mode | grep '^pub' | cut -d: -f1 | xargs -n1 gpg --list-keys --with-colons --fixed-list-mode | grep '^created' | cut -d: -f10 | xargs -n2 sh -c 'echo Expiration: $1; gpg --check-sigs $2'
    try on your machine
    explain this command
  • gpg:ai:704fc How to encrypt the bup backup
    $ gpg -c -o encrypted_backup.tar.gz.gpg backup.tar.gz
    try on your machine
    explain this command
  • gpg:ai:c5281 change expiration of primary key
    $ gpg --edit-key ${key-id} expire
    try on your machine
    explain this command
  • gpg:tldr:067ca gpg: Sign `doc.txt` without encryption (writes output to `doc.txt.asc`).
    $ gpg --clearsign ${doc-txt}
    try on your machine
    explain this command
  • gpg:tldr:1417a gpg: Export private key for alice@example.com (output to `stdout`).
    $ gpg --export-secret-keys --armor ${alice@example-com}
    try on your machine
    explain this command
  • gpg:tldr:24215 gpg: Create a GPG public and private key interactively.
    $ gpg --full-generate-key
    try on your machine
    explain this command
  • gpg:tldr:7ed74 gpg: Decrypt `doc.txt.gpg` (output to `stdout`).
    $ gpg --decrypt ${doc-txt-gpg}
    try on your machine
    explain this command
  • gpg:tldr:ae34f gpg: Encrypt and sign `doc.txt` for alice@example.com and bob@example.com (output to `doc.txt.gpg`).
    $ gpg --encrypt --sign --recipient ${alice@example-com} --recipient ${bob@example-com} ${doc-txt}
    try on your machine
    explain this command
  • gpg:tldr:d2976 gpg: Export public key for alice@example.com (output to `stdout`).
    $ gpg --export --armor ${alice@example-com}
    try on your machine
    explain this command
  • gpg:tldr:d7e0d gpg: Encrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`).
    $ gpg --symmetric ${doc-txt}
    try on your machine
    explain this command
  • gpg:tldr:eaf55 gpg: Import a public key.
    $ gpg --import ${public-gpg}
    try on your machine
    explain this command
back to context overview