scp
'user@remote_host:"/home/user/path with spaces/filename with spaces.ext"' .
and
scp
'user@remote_host:/home/user/path\ with\ spaces/filename\ with\ spaces.ext' .
本文介绍了如何使用SCP命令来传输带有空格的文件路径。通过两种不同的方式展示了如何正确地指定包含空格的源文件路径。
scp
'user@remote_host:"/home/user/path with spaces/filename with spaces.ext"' .
and
scp
'user@remote_host:/home/user/path\ with\ spaces/filename\ with\ spaces.ext' .

被折叠的 条评论
为什么被折叠?