Scp file path with spaces




















Save my name, email, and website in this browser for the next time I comment. Don't subscribe All Replies to my comments Notify me of followup comments via e-mail. You can also subscribe without commenting.

Escape Spaces in Path Names for Scp Command The following image shows a familiar error that is encountered when using the scp command with spaces in file or folder names. Let us look at how to avoid such errors. Here is an example. Escape Spaces with Quotation Marks in Scp The second way to avoid scp errors due to spaces in path names is to enclose the entire path name in quotation marks "". Escape Spaces with Both Backslash and Quotation in Scp The third method of escaping spaces in path names is by combining backslash and quotation marks.

Active 4 months ago. Viewed 12k times. When I attempted the transfer, I used the following command: scp [remote username] Can someone fill me in on what I'm doing wrong here? Improve this question. Alcuin Arundel Alcuin Arundel 2, 2 2 gold badges 17 17 silver badges 28 28 bronze badges. Main lesson here: quit using spaces in file names.

Even Apple corporation agrees on this now: support. That's fine, unless you're scp'ing files that you didn't name.

Add a comment. Active Oldest Votes. There are 3 possibilities that you could try: scp [remote username] All should work but some are syntactically easier to understand than others References: How to escape spaces in path during scp copy in linux? Improve this answer. Here is the fix for ZSH users, scp 'username Sign up or log in Sign up using Google. That is already resolved in the actual answer.

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.

Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 3. Related Hot Network Questions. Question feed. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000