This cheat sheet is for gpg2 which is aliased by the gpg command on Ubuntu.
sudo apt install pinentry-tty
sudo update-alternatives --config pinentry
Source: https://superuser.com/a/1381147
gpg --verify <File Input>
--verify
Assume that the first argument is a signed file or a detached signature and verify it without generating any output. [...]
Source: https://linux.die.net/man/1/gpg
gpg -d <File Input>
-d
, --decrypt
Decrypt the file given on the command line [...]
Source: https://linux.die.net/man/1/gpg
gpg -u <Sender Name> command
-u
, --local-user
Use name as the key to sign with. [...]
Source: https://linux.die.net/man/1/gpg
gpg -esa -r <Receiver Name> <File Input>
-e
, --encrypt
Encrypt data. This option may be combined with --sign [...]
-s
, --sign
Make a signature. This command may be combined with --encrypt [...]
-a
, --armor
Create ASCII armored output. [...]
-r
, --recipient
Encrypt for user id name. [...]
Source: https://linux.die.net/man/1/gpg
gpg --clearsign <File Input>
--clearsign
Make a clear text signature. [...]
Source: https://linux.die.net/man/1/gpg