Scp

ph
Admin (토론 | 기여)님의 2017년 6월 21일 (수) 01:37 판 (새 문서: ==Scp a file with spaces or parentheses in the name== quote it twice. <pre>scp username@192.168.1.2:"'my file has spaces in it'" .</pre> http://blog.chilly.ca/?p=94 <blockquote>The fi...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색

Scp a file with spaces or parentheses in the name

quote it twice.

scp username@192.168.1.2:"'my file has spaces in it'" .

http://blog.chilly.ca/?p=94

The first set of quotes protects the second set of quotes from the shell, so the file name gets passed over ssh with the quotes still in it… then the shell on the other end sees the quotes and removes them (preserving the spaces).