0
how to use cp to copy directory in Mac machine?

Solved 1 Answers 29 Views Others
0 1
I tried using

cp <source-directory> <name-of-destination-directory>

 

But it throws an error that <source-directory> is not a file and its not allowing me to copy the same.

1 Answer

0
Best answer
0

You can use

 

cp -Rvf <source-directory> <name-of-destination-directory>

 

Breakup:

-R is recursive

-v is verbose

-f is force

answered by (151 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...