-1

Based on the tutorials I've browsed through:

This is the Linux scp command syntax to retrieve file or directory from a remote computer:

scp -r [login name@ip address] : [/path/filename] .

So what exactly is /path/filename on your own computer? What is root? Is it C drive? Is it current User folder? (Windows OS here)

AlxVallejo
  • 1,086
  • 4
  • 11
  • 19

2 Answers2

2

If you're using Windows, you want to download WinSCP.

adaptr
  • 16,576
  • 23
  • 34
1

The . at the end of the command is the destination pathname, so for that command, it is the current directory. The -r option is used to recursively copy directories, so leave it off if you only intend to copy a single file. Also, the spaces on either side of the colon (:) should not be there. Here's an example, with a more complicated destination:

C:\> scp user@myhost.example.com:/home/user/myfile %userprofile%\Desktop\myfile
bonsaiviking
  • 4,420
  • 17
  • 26
  • So if I'm using Putty which is executed from my desktop, the "." will download the file to my desktop? – AlxVallejo Mar 01 '12 at 17:04
  • `.` always refers to your current directory (i.e. what you see before the `>` in your CMD.EXE prompt. I'm not super-familiar with using PuTTY from the command line. – bonsaiviking Mar 01 '12 at 17:14