Transferring files between your local computer and Andrew Unix

A bunch of people asked about this on Piazza, so I felt obliged to go ahead and write about it!

Mac and Linux users

I recommend using scp, a linux command for remote file copy using SSH. If you’re familiar with Unix, you’ll realize that the format for this command is very similar to the cp Unix command as

scp source destination

For example, let’s say Nobody ( wants to transfer the file foo.c0 from the Downloads folder on her local computer to her 15122 folder on Andrew Unix. (Our target andrewid is nobody, you should replace it with your own)

scp ~/Downloads/foo.c0

Conversely, if Nobody has finished editing her code and wants to copy it to the code folder on her local computer (maybe in order to upload to Autolab), she can use the scp command again with the source and destination switched, as follows.

scp ~/code

You can refer to the man page for scp for more details and options. One very useful option is the -r flag which is used to copy over folders as opposed to files.

If you’re on a Mac, you can also use Fetch, if you would rather not work on the command line to transfer files.

Windows users

Not being a Windows user myself (I switched to Mac when I got to college), I recommend you take this advice with a grain of salt, as most of it is hearsay.

WinSCP, I’ve heard, is a very good option. I think it works a lot like Fetch for Mac users. There is ample documentation on the website that should probably get you up to speed on setting it up and using it. It also has good integration with the PuTTY SSH Client, that you’re probably using to SSH into Andrew Unix.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s