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

后端 未结 6 636
抹茶落季
抹茶落季 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:30

    Sorry for using this Linux question to put this tip for Powershell on Windows 10: the space char escaping with backslashes or surrounding with quotes didn't work for me in this case. Not efficient, but I solved it using the "?" char instead:

    for the file "tasks.txt Jun-22.bkp" I downloaded it using "tasks.txt?Jun-22.bkp"

提交回复
热议问题