how to copy files from terminal 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