What is cp: cannot stat error in Unix, I get this error when trying to copy thing from one folder to another

If your source directory is set in quotes, then make sure that the * is outside the quotes, i.e.

cp "source/"* dest

or

cp "source"/* dest

Leave a Comment