using SCP: how to set working directory?

Discussion in 'Mac Apps and Mac App Store' started by flat6, Nov 8, 2004.

  1. flat6 macrumors regular

    Oct 24, 2004

    So I need to tell SCP where my file.s is located. How do I do this?

    I'm running OSX 10.3 and this is all from the terminal window.
  2. crackpip macrumors regular

    Jul 23, 2002
    If the file is on your local machine, use 'cd' to go to the directory the file is in.

    The general syntax for scp is

    scp user@host:path_to_original user@host:path_to_copy

    You can leave off the user@host: if the file is on the local machine. So for example to transfer a file named file1, from host1 to the desktop of the machine I'm currently using, I would do this

    scp crackpip@host1:~/file1 ~/Desktop

    If your not familiar with man pages, you should get used to them. Many of them read like stereo instructions, but as you get more familiar with the terminal you get used to them.

    For example type:
    man scp

  3. belf8st macrumors member

    Feb 10, 2004

Share This Page