1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

gpg: update page, gpg2: convert to alias of gpg (#15966)

This commit is contained in:
Lena 2025-03-19 12:23:48 +00:00 committed by GitHub
parent cf9bc6d416
commit 69c8e99e46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 21 additions and 186 deletions

View file

@ -1,8 +1,7 @@
# gpg # gpg
> برنامج GNU Privacy Guard. > برنامج GNU Privacy Guard.
> راجع `gpg2` للحصول على الإصدار الثاني من GNU Privacy Guard. تقوم معظم أنظمة التشغيل بربط `gpg` بـ `gpg2`. > لمزيد من التفاصيل: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
> لمزيد من التفاصيل: <https://gnupg.org>.
- إنشاء مفتاح GPG عام وخاص بطريقة تفاعلية: - إنشاء مفتاح GPG عام وخاص بطريقة تفاعلية:

View file

@ -1,8 +1,7 @@
# gpg # gpg
> GNU Privacy Guard. > GNU Privacy Guard.
> Siehe `gpg2` für GNU Privacy Guard 2. > Weitere Informationen: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
> Weitere Informationen: <https://gnupg.org>.
- Erstelle einen öffentlichen und privaten GPG Schlüssel interaktiv: - Erstelle einen öffentlichen und privaten GPG Schlüssel interaktiv:

View file

@ -1,33 +0,0 @@
# gpg2
> GNU Privacy Guard 2.
> Siehe `gpg` für GNU Privacy Guard 1.
> Weitere Informationen: <https://docs.releng.linuxfoundation.org/en/latest/gpg.html>.
- Liste alle importierten Schlüssel auf:
`gpg2 --list-keys`
- Verschlüssle eine bestimme Datei für einen bestimmten Empfänger und schreibe den Output in eine neue `.gpg` Datei:
`gpg2 --encrypt --recipient {{hans@beispiel.de}} {{pfad/zu/datei.txt}}`
- Verschlüssle eine bestimmte Datei nur mit einem Passwort und schreibe den Output in eine neue `.gpg` Datei:
`gpg2 --symmetric {{pfad/zu/datei.txt}}`
- Verschlüssle eine bestimmte Datei und schreibe das Ergebnis auf `stdout`:
`gpg2 --decrypt {{pfad/zu/datei.txt.gpg}}`
- Importiere einen öffentlichen Schlüssel:
`gpg2 --import {{pfad/zu/öffentlichem_schlüssel.gpg}}`
- Exportiere den öffentlichen Schlüssel einer bestimmten Email-Adresse nach STDOUT:
`gpg2 --export --armor {{hans@beispiel.de}}`
- Exportiere den privaten Schlüssel einer bestimmten Email-Adresse nach STDOUT:
`gpg2 --export-secret-keys --armor {{hans@beispiel.de}}`

View file

@ -1,8 +1,7 @@
# gpg # gpg
> GNU Privacy Guard。 > GNU Privacy Guard。
> GNU Privacy Guard 2 については `gpg2` を参照してください。殆どのオペレーティングシステムは `gpg``gpg2` にシンボリックリンクしています。 > もっと詳しく: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>
> もっと詳しく: <https://gnupg.org>
- GPGの公開鍵と秘密鍵を対話的に作成する: - GPGの公開鍵と秘密鍵を対話的に作成する:

View file

@ -1,33 +0,0 @@
# gpg2
> GNU Privacy Guard 2。
> GNU Privacy Guard 1 については `gpg` を参照してください。
> もっと詳しく: <https://docs.releng.linuxfoundation.org/en/latest/gpg.html>
- インポートされたキーを一覧表示する:
`gpg2 --list-keys`
- 指定したファイルを指定した受信者のために暗号化し、`.gpg`を付加した新しいファイルに出力を書き出す:
`gpg2 --encrypt --recipient {{alice@example.com}} {{path/to/doc.txt}}`
- 指定したファイルをパスフレーズのみで暗号化し、`.gpg`を付加した新しいファイルに出力を書き出す:
`gpg2 --symmetric {{path/to/doc.txt}}`
- 指定したファイルを復号し、結果を`stdout`に出力する:
`gpg2 --decrypt {{path/to/doc.txt.gpg}}`
- 公開鍵をインポートする:
`gpg2 --import {{path/to/public_key.gpg}}`
- 指定したメールアドレスの公開鍵を`stdout`にエクスポートする:
`gpg2 --export --armor {{alice@example.com}}`
- 指定したメールアドレスの秘密鍵を`stdout`にエクスポートする:
`gpg2 --export-secret-keys --armor {{alice@example.com}}`

View file

@ -1,8 +1,7 @@
# gpg # gpg
> GNU Privacy Guard. > GNU Privacy Guard.
> GNU Privacy Guard 2에 대해서는 `gpg2`를 참조. 대부분의 운영체제는 `gpg``gpg2`에 심볼릭 링크를 설정함. > 더 많은 정보: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
> 더 많은 정보: <https://gnupg.org>.
- GPG 공개 및 개인 키를 대화형으로 생성: - GPG 공개 및 개인 키를 대화형으로 생성:

View file

@ -1,33 +0,0 @@
# gpg2
> GNU Privacy Guard 2.
> GNU Privacy Guard 1에 대해서는 `gpg`를 참조.
> 더 많은 정보: <https://docs.releng.linuxfoundation.org/en/latest/gpg.html>.
- 가져온 키 목록 나열:
`gpg2 --list-keys`
- 지정된 수신자에 대해 지정된 파일을 암호화하고, `.gpg`가 추가된 새로운 파일에 출력을 작성:
`gpg2 --encrypt --recipient {{alice@example.com}} {{경로/대상/문서.txt}}`
- 암호만 사용하여 지정된 파일을 암호화하고, `.gpg`가 추가된 새로운 파일에 출력을 작성:
`gpg2 --symmetric {{경로/대상/문서.txt}}`
- 지정된 파일의 암호를 복호화하고, 결과를 `stdout`에 기록:
`gpg2 --decrypt {{경로/대상/문서.txt.gpg}}`
- 공개 키 가져오기:
`gpg2 --import {{경로/대상/공개_키.gpg}}`
- 지정된 이메일 주소의 공개 키를 `stdout`으로 내보내기 :
`gpg2 --export --armor {{alice@example.com}}`
- 지정된 이메일 주소가 포함된 개인 키를 `stdout`으로 내보내기:
`gpg2 --export-secret-keys --armor {{alice@example.com}}`

View file

@ -1,8 +1,7 @@
# gpg # gpg
> GNU Privacy Guard. > GNU Privacy Guard.
> Veja `gpg2` para o GNU Privacy Guard 2. A maioria dos sistemas operacionais criam link simbólico entre `gpg` e `gpg2`. > Mais informações: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
> Mais informações: <https://gnupg.org>.
- Cria uma chave GPG pública e privada interativamente: - Cria uma chave GPG pública e privada interativamente:

View file

@ -1,8 +1,7 @@
# gpg # gpg
> GNU Privacy Guard. > GNU Privacy Guard.
> 请参阅 `gpg2` 了解 GNU Privacy Guard 2. > 更多信息:<https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
> 更多信息:<https://gnupg.org>.
- 交互地创建 GPG 公钥和私钥: - 交互地创建 GPG 公钥和私钥:

View file

@ -1,33 +0,0 @@
# gpg2
> GNU Privacy Guard 2.
> GNU Privacy Guard 1 请参见`gpg`.
> 更多信息:<https://docs.releng.linuxfoundation.org/en/latest/gpg.html>.
- 列出导入的密钥(公钥):
`gpg2 --list-keys`
- 为指定的接收者加密指定的文件,将输出结果写到一个新的文件中,并附加 `.gpg`
`gpg2 --encrypt --recipient {{alice@example.com}} {{path/to/doc.txt}}`
- 只用密码(对称加密)对指定文件进行加密,将输出结果写入一个附加`.gpg`的新文件:
`gpg2 --symmetric {{path/to/doc.txt}}`
- 解密指定的文件,并将结果写入标准输出:
`gpg2 --decrypt {{path/to/doc.txt.gpg}}`
- 导入一个公钥:
`gpg2 --import {{path/to/public_key.gpg}}`
- 将指定电子邮件地址的公钥导出到标准输出:
`gpg2 --export --armor {{alice@example.com}}`
- 将指定电子邮件地址的私钥导出到标准输出:
`gpg2 --export-secret-keys --armor {{alice@example.com}}`

View file

@ -1,37 +1,36 @@
# gpg # gpg
> GNU Privacy Guard. > GNU Privacy Guard, an OpenPGP encryption and signing tool.
> See `gpg2` for GNU Privacy Guard 2. Most operating systems symlink `gpg` to `gpg2`. > More information: <https://gnupg.org/documentation/manuals/gnupg/Invoking-GPG.html>.
> More information: <https://gnupg.org>.
- Create a GPG public and private key interactively: - Create a GPG public and private key interactively:
`gpg --full-generate-key` `gpg --full-generate-key`
- List all keys from the public keyring:
`gpg {{[-k|--list-keys]}}`
- Sign `doc.txt` without encryption (writes output to `doc.txt.asc`): - Sign `doc.txt` without encryption (writes output to `doc.txt.asc`):
`gpg --clearsign {{doc.txt}}` `gpg --clearsign {{doc.txt}}`
- Encrypt and sign `doc.txt` for alice@example.com and bob@example.com (output to `doc.txt.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}}` `gpg {{[-es|--encrypt --sign]}} {{[-r|--recipient]}} {{alice@example.com}} {{[-r|--recipient]}} {{bob@example.com}} {{doc.txt}}`
- Encrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`): - Encrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`):
`gpg --symmetric {{doc.txt}}` `gpg {{[-c|--symmetric]}} {{doc.txt}}`
- Decrypt `doc.txt.gpg` (output to `stdout`): - Decrypt `doc.txt.gpg` (output to `stdout`):
`gpg --decrypt {{doc.txt.gpg}}` `gpg {{[-d|--decrypt]}} {{doc.txt.gpg}}`
- Import a public key: - Import a public key:
`gpg --import {{public.gpg}}` `gpg --import {{public.gpg}}`
- Export public key for alice@example.com (output to `stdout`): - Export the public/private key for `alice@example.com` (output to `stdout`):
`gpg --export --armor {{alice@example.com}}` `gpg {{--export|--export-secret-keys}} {{[-a|--armor]}} {{alice@example.com}}`
- Export private key for alice@example.com (output to `stdout`):
`gpg --export-secret-keys --armor {{alice@example.com}}`

View file

@ -1,33 +1,7 @@
# gpg2 # gpg2
> GNU Privacy Guard 2. > This command is an alias of `gpg`.
> See `gpg` for GNU Privacy Guard 1.
> More information: <https://docs.releng.linuxfoundation.org/en/latest/gpg.html>.
- List imported keys: - View documentation for the original command:
`gpg2 --list-keys` `tldr gpg`
- 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}}`