copy from terminal to terminal code example
Example 1: mac copy folder terminal
cp -R ~/Documents/Expenses /Volumes/Data/Expenses
Example 2: copy content file from terminal
pbcopy < ~/.ssh/id_rsa.pub
cp -R ~/Documents/Expenses /Volumes/Data/Expenses
pbcopy < ~/.ssh/id_rsa.pub