CS Lab: Copying files between accounts or computers
Note that if your files make up a Mercurial (hg) repository, you
probably want to use Mercurial-specific
ways to copy them.
You may want to copy files between an in-lab account and your personal
account, or you might want to copy files to/from a partner's account. A
fairly easy way to do that is to use the file browser and SSH.
In these examples, we'll assume that you are logged in under one of the
class accounts, and that the other account that you want to copy to or
from is for the user named mortimer.snerd
. (Substitute your
username.)
- In the Places menu (in the top bar), select Home
folder to open a window. Browse to the folder/directory in this
account where you want to copy.
- Again, in the Places menu, select Connect to
server. In the dialog that pops up,
- Change Service type to
SSH
- For Server, fill in
cslab25
(or any of the
other cslab machines)
- For Folder, fill in
/homes/mortimer.snerd
(with your id).
- For User name fill in
mortimer.snerd
(yours)
- Click on Connect
- When prompted, supply the password for
mortimer.snerd
,
but be sure that the "forget immediately" option is chosen.
All that effort gets you another browser window, but this one is for
the home directory of mortimer.snerd
.
- Navigate in this new window to where you want to put/get the files.
You may want to make a new folder for just this lab.
- Use the mouse to select the files you want in one
window and copy them to the other.
When you're done, disconnect the other home directory. You should
see what looks like an "eject" icon next to it in the bar down the
left side of the window; click that to disconnect it. (Don't just
close the window.)
It will be easiest to copy files from the lab to your own computer
when you are sitting at your computer. To do that, you will need to
have suitable software on your computer. If you have a Mac, you might
want to try the program Fugu; on MS Windows you might
try the FileZilla client.
Cary Gray
Last modified: Mon Sep 9 11:20:07 CDT 2013