Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

38
tldr/gpg2 Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gpg2
> GNU Privacy Guard 2.
> See `gpg` for GNU Privacy Guard 1.
> More information: <https://docs.releng.linuxfoundation.org/en/latest/gpg.html>.
- List imported keys:
`gpg2 --list-keys`
- 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}}`
- Encrypt a specified file with only a passphrase, writing the output to a new file with `.gpg` appended:
`gpg2 --symmetric {{path/to/doc.txt}}`
- Decrypt a specified file, writing the result to `stdout`:
`gpg2 --decrypt {{path/to/doc.txt.gpg}}`
- Import a public key:
`gpg2 --import {{path/to/public_key.gpg}}`
- Export the public key of a specified email address to `stdout`:
`gpg2 --export --armor {{alice@example.com}}`
- Export the private key with a specified email address to `stdout`:
`gpg2 --export-secret-keys --armor {{alice@example.com}}`