|
|
|
|
|
by cheese65536
2046 days ago
|
|
Also, what is the correct way to use scp copy remote files with a space in the name? I usually end up just using wildcards (or rsync), but that can behave incorrectly with similarly named files. $ touch '/tmp/test file'
$ scp localhost:'/tmp/test file' .
scp: /tmp/test: No such file or directory
scp: file: No such file or directory
$ scp localhost:'/tmp/test?file' .
test file 100% 0 0.0KB/s 00:00
Edit: I'll answer my own question, which I clearly never thought about much, since the answer is obvious. I need to escape the space within the string. $ scp localhost:'/tmp/test\ file' .
test file 100% 0 0.0KB/s 00:00
|
|