GPG – some commands

Nice description is here: http://www.somacon.com/p107.php

Particular problem: when an imported key is used to encrypt some file gpg asks if we trust to the key:

It is NOT certain that the key belongs to the person named
in the user ID.  If you *really* know what you are doing,
you may answer the next question with yes.

Use this key anyway? (y/N)

To avoid this question we can mark the key as trusted with the following:

look for our key:
>gpg –list-secret-keys

edit the key:
> gpg –edit-key <key-name>
print the command trust
gpg> trust
and choose option 5