Tuesday, February 23, 2016

Using scp with folder names that contain spaces

If you use scp to download files from server and you have folders with names that contain spaces, you have to declare space and use quotes:

scp mpjanic@server.stanford.edu:'/home/mpjanic/path\ to\ folder\ with\ spaces/file.txt' ./

No comments:

Post a Comment