zibi zibi - 1 year ago 128
Linux Question

Copying local files with curl

Is there a way to copy local files with curl, I need it to work as an alternative for cp command.

This is a bit strange, but I'm working on an environment where cp is not available.

Answer Source

You could say:

curl file:///path/to/source/file -O /path/to/destination

This would copy /path/to/source/file to /path/to/destination.