Skip to the content.

Introduction to Shell and Cluster computing (HMS-RC’s O2 cluster)

Learning Objectives

Installations

Mac users: No installation requirements.
Windows users: GitBash

Notes

Instructions for Harvard researchers with access to HMS-RC’s O2 cluster

To run through the code in the lessons below, you will need to be logged into O2 and working on a compute node (i.e. your command prompt should have the word compute in it).

  1. Log in using ssh ecommonsID@o2.hms.harvard.edu and enter your password.
  2. Once you are on the login node, use srun --pty -p interactive -t 0-2:30 --mem 1G /bin/bash to get on a compute node or as specified in the lesson.
  3. Proceed only once your command prompt has the word compute in it.
  4. If you log out between lessons (using the exit command twice), please follow points 1. and 2. above to log back in and get on a compute node when you restart with the self learning.

Lessons

Part I

  1. Introduction to Shell
  2. Wildcards and shortcuts in Shell
  3. Examining and creating files
  4. Searching and redirection
  5. Shell scripts and variables in Shell

Part II

  1. Loops and automation
  2. Permissions and Environment Variables

Part III

  1. Introduction to High-performance computing
  2. Introduction to the O2 cluster

Building on this workshop


Resources

Cheat sheets:

Online tutorials:

General help:


These materials have been developed by members of the teaching team at the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.