Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am a little confused on how i am suppose to get a file from my terminal window on my mac that I want to have/need to use on a different applicatopn (APLX) in order to edit this file. I was wondering if it is:

scp username@userhost.edu:directory/file file

Is this the right command to use to get a specific file onto my mac itself?

Thank You

share|improve this question

2 Answers 2

You should be able to use the following command to copy a remote file to your local Mac:

scp [username]@[server address]:[path to source file] [destination directory]

For example:

scp john@192.168.1.1:~/Desktop/file.zip ~/Desktop/

That should do it!

share|improve this answer
    
Okay, if i am logged onto a school account and want to transfer this file to my mac, would this be the same process. Say from my student account for my class? –  user1698560 Oct 2 '12 at 0:38
    
If you are ssh'd into the remote server, you would modify the command a bit: scp [path to source file] [username]@[you mac's ip address]:[destination directory] For example: scp ~/Desktop/file.zip john@192.168.1.1:~/Desktop/ Hope that helps! –  user162522 Oct 2 '12 at 15:32

Yeah, scp should do the trick.

scp username@host:~/test.txt ~/Downloads/

That will copy test.txt from my server to my local drive (to my Downloads folder).

In the Terminal, you can do this to see the scp manual:

man scp

There are a lot more examples on this page.

share|improve this answer
    
Okay, if i am logged onto a school account and want to transfer this file to my mac, would this be the same process. Say from my student account for my class? –  user1698560 Oct 2 '12 at 0:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.