How to scp with spaces
Useful tip to make an scp with spaces in directory/ies.
scp -r myfile root@dest:"/my/patch/with\\ spaces\\ in\\ dir"
You need to escape spaces two times, because the first one will be removed locally.
Written by Maxime VALETTE
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#