export - the publick key via terminal

hello dear linux-experts

export - the publick key via terminal . thats the question of the day.

i ve just created a keypair within kgp
now i want to export it - send the public key to a friend of mine -

how to do that. it would be grerat if i can show the public key

a. in the terminal
b. in the download section

how to do that!`?