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

后端 未结 6 639
抹茶落季
抹茶落季 2020-11-30 17:13

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

6条回答
  •  青春惊慌失措
    2020-11-30 17:44

    Also you can do something like:

    scp foo@bar:"\"apath/with spaces in it/\""
    

    The first level of quotes will be interpreted by scp and then the second level of quotes will preserve the spaces.

提交回复
热议问题