UQ RCC HPC Documentation

High Performance Computing guides and policies for the University of Queensland.

View the Project on GitHub UQ-RCC/hpc-docs

Shell Basics for HPC

Workshop Objective

Learn how to enhance your effectiveness in using high-performance computing (HPC) resources, by improving the resilience and utility of your HPC job scripts using shell scripting techniques.

Workshop Background

This document will form the basis of a workshop being offered at ResBaz Brisbane 2023. You will be able to participate without having an active HPC account but it would be preferrable.

Assumed Knowledge

You should be familiar (though not expected to be experts) with command line linux environments. This link will provide you with access to short videos that will be of assistance.

Pre-requisites

Access to a HPC or linux system or an emulator

You will need access to one of the following:

SSH Client Tool

To connect with a remote linux system, you will need to use one of

Workshop Outline

What the BASH ?!

What is BASH?

(Typical) shell script structure

Pipes vs. Scripts

Executing scripts vs. Sourcing

What are HPC job scripts?

Shell language features

Some of the linux command line power tools (aka filters)

Some situations that are enhanced by the use of some shell scripting

Think, and test, before you fire a shell script at the HPC