Skip to content

Command-Line Transfer Tools

scp and rsync (macOS/Linux/Linux on Windows)

Linux and macOS users can use scp or rsync. Use the ipaddress of the cluster (Recieved on mail on account creation) to transfer files. These transfers must be initiated from your local machine.

scp and sftp are both used from a Terminal window. The basic syntax of scp is

    scp [from] [to]

The from and to can each be a filename or a directory/folder on the computer you are typing the command on or a remote host.

Example: Transfer a File from Your Computer to a Cluster

Using the example netid abc123, following is run on your computer's local terminal.

    scp myfile.txt abc123@[ipaadress]:/gpfs-home/abc123/test

In this example, myfile.txt is copied to the directory /gpfs-home/abc123/test: on Grace. This example assumes that myfile.txt is in your current directory. You may also specify the full path of myfile.txt.

    scp /home/xyz/myfile.txt abc123@[ipaadress]:/gpfs-home/abc123/test

Example: Transfer a Directory to a Cluster

    scp -r mydirectory abc123@[ipaadress]:/gpfs-home/abc123/test

In this example, the contents of mydirectory are transferred. The -r indicates that the copy is recursive. Example: Transfer Files from the Cluster to Your Computer

Assuming you would like the files copied to your current directory:

    scp abc123@[ipaadress]:/gpfs-home/abc123/myfile.txt .

Note that . represents your current working directory. To specify the destination, simply replace the . with the full path:

    scp abc123@[ipaadress]:/gpfs-home/abc123/myfile.txt /path/myfolder