how to copy from one terminal to the other code example
Example 1: copy content file from terminal
pbcopy < ~/.ssh/id_rsa.pub
Example 2: mac copy file to clipboard terminal
$ pbcopy < file.txt
pbcopy < ~/.ssh/id_rsa.pub
$ pbcopy < file.txt