In code blocks, the dollar sign ($) is not to be printed. The dollar sign is usually an indicator that the text following it should be typed in a terminal window.

1 Local workspace

Start by creating a folder on your laptop where the files that you will download should end up. You need to have write permission in this folder. This folder will be referred to as your local workspace throughout these instructions. Open a terminal window on your laptop and move into your local workspace.

2 Download a file from UPPMAX

Lets assume that you have a file “results.txt” in the following folder on UPPMAX:

/proj/snic2022-22-1124/nobackup/username/somefolder/

username and somefolder should be replaced with your real username and a real folder name.
To download the file to your local workspace type:

scp username@rackham.uppmax.uu.se:/proj/snic2022-22-1124/nobackup/username/somefolder/results.txt .

Note that the last . means that the file will keep the original name.

3 Upload a file to UPPMAX

Now lets imagine that you have developed a script on your laptop and want to upload it to UPPMAX. The script is stored in your local workspace and is called “script.sh”.
Type this in your local workspace to upload the file to UPPMAX:

scp script.sh username@rackham.uppmax.uu.se:/proj/snic2022-22-1124/nobackup/username/somefolder/.

Again, username and somefolder should be replaced with your real username and a real folder name.