Background information: UNIX and basic command to use (a brief review):

Note: please change the default cluster name if necessary (UNIL) (EPFL) (UNIGE)

UNIX documentation (background info in case you need help with UNIX):

  • Simple text editor: nano
  • To copy files from local machine to
    • scp filename
    • Copy program on Windows:
    • Copy program on Max OS X:
Hint: you can also directly copy the example files to your current folder on with the following command:



    • We recommend that you create a folder in /scratch/cluster/daily/ and that you perform all the exercises there. At the end of the workshop, you can copy the files you want to keep on your local machine.

Do not forget to replace <username> in the following examples with your actual username!

1) login to cluster front-end
Using a command line terminal (UNIX shell or putty on Windows), log in to the Vital-IT (UNIL) cluster front-end machine:

ssh <username>

2) Create a directory in /scratch/daily/

cd /scratch/cluster/daily/
mkdir <username>
cd <username>

3) Download a copy of the example files to your current folder

tar -ztvf examples-files.tar.gz
(the 't' lists the content of the archive. Notice the dates of the files.)
tar -zxvmf examples-files.tar.gz
(the 'm' preceeding the f - for 'modification-time' will set the current date and time to the files. Why could this be important?)
cp /db/HPC-course/ga/hpc-ga-ex-scripts.tar.gz .
tar -zxvmf hpc-ga-ex-scripts.tar.gz

3) Cleaning up and preparing for the exercises

rm examples-files.tar.gz
mkdir exercise_blast
mv examples-files/*blast* exercise
mv examples-files/p123456.seq exercise_blast/
rm hpc-ga-ex-scripts.tar.gz
mkdir exercise_ga
mv *.sh soap.config exercise_ga

4) Additional file

On your laptop:
- go to: ""
- save the file as 'AF311055' on your laptop.
- Copy the 'AF311055' file on Vital-IT:

a) using winscp or fugu
b) using the terminal
scp AF311055 <username><username>/exercise_blast/
- On Vital-IT server, in the exercise_blast/ directory, rename the 'AF311055' file to 'thio_rat.dna'
mv AF311055 thio_rat.dna

5) UNIX permissions

Go in the examples-files directory and try to execute the shell script
using the following command (including ./ !):

What is wrong ?
Hints: look at the file permissions or ... man chmod

Last modified: Monday, 7 September 2015, 9:44 AM