Use the tarball with exercises

Goal

  • You can run the example files needed for the exercises

  • If any, you are able to navigate to the project folder

  • If needed, you are able to create a subfolder in the project folder

A tarball is a file that contains multiple files, similar to a zip file. To use the files it contains, it needs to be untarred/unzipped/uncompressed first.

Procedure

Below are the steps to download and extract the files needed for exercises in the course.

Step 1/6: if there is a project folder, navigate to your project folder

This step only applies if your HPC cluster uses a project folder. Skip this step if your HPC cluster does not use project folders.

On your favorite HPC cluster, navigate to the project folder of this course. See NAISS projects overview for where these are.

Step 2/6: if there is a project folder, create a folder for yourself

This step only applies if your HPC cluster uses a project folder. Skip this step if your HPC cluster does not use project folders.

In the project folder of this course, create a folder for yourself. For example, if your name is Sven, create a folder called sven

Step 3/6: if there is a project folder, navigate inside that folder

This step only applies if your HPC cluster uses a project folder. Skip this step if your HPC cluster does not use project folders.

From the project folder of this course, navigate inside your personal folder

Step 4/6: get the tarball

In the terminal, in your personal folder, type the following command:

wget https://github.com/UPPMAX/HPC-python/raw/refs/heads/main/exercises.tar.gz

Step 5/6: Uncompress the tarball

In the terminal, in your personal folder, type the following command:

tar -xvzf exercises.tar.gz

Step 6/6: Navigate in the folder of that day

After decompressing, there is a folder called day2, or day3 or day4 that contains the exercises. Navigate into that folder.