First command write output to file my.key and second directly sends an email to your friend. Once my.key delivered to friend, he/she need to import it using the following command (aka adding keys to your keyring):$ gpg --import my.key