how to copy a file in terminal mac code example
Example 1: mac clone directory duplicate
# Is there something special with that directory or are you really just asking how to copy directories?
# Copy recursively via CLI:
cp -R
Example 2: mac copy file to clipboard terminal
$ pbcopy < file.txt