copy using terminal mac code example
Example 1: mac copy folder terminal
cp -R ~/Documents/Expenses /Volumes/Data/Expenses
Example 2: mac copy file to clipboard terminal
$ pbcopy < file.txt
cp -R ~/Documents/Expenses /Volumes/Data/Expenses
$ pbcopy < file.txt