How do I escape spaces in path for scp copy in Linux?

I’m new to linux, I want to copy a file from remote to local system… now I’m using scp command in linux system.. I have some folders or files names are with spaces, when I try to copy that file, it shows the error message: “No such file or directory”

I tried:

scp [email protected]:'/home/5105/test/gg/Untitled Folder/a/qy.jpg' /var/www/try/

I saw the some reference online but I don’t understand perfectly, can any one help on this?

how can I escape spaces in file name or directory names during copying…

11 Answers
11

Leave a Comment