Bash Shell: Using the Command Line

Self-learning course

Site Updated On: August 05, 2022
For More Info Email: richard.regan@durham.ac.uk
Bash Shell: Using the Command Line

General Information

Requirements: Participants must have access to a computer with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.) that they have administrative privileges on. They should have a few specific software packages installed (listed below).

Accessibility:

We are dedicated to providing a positive and accessible learning environment for all. Please get in touch you require any accommodations or if there is anything we can do to make this lesson more accessible to you.

Contact: Please email or richard.regan@durham.ac.uk for more information.


Surveys

Please be sure to complete this survey after the lesson.

Please input the date as the date you started the materials.

Post-Lesson Survey


Lesson Outline

Short(ish) lesson description


Schedule

1. Why Use a Cluster? Why would I be interested in High Performance Computing (HPC)?
What can I expect to learn from this course?
2. Connecting to the remote HPC system How do I open a terminal?
How do I connect to a remote computer?
What is an SSH key?
3. Moving around and looking at things How do I navigate and look around the system?
4. Writing and reading files How do I create/edit text files?
How do I move/copy/delete files?
5. Wildcards and pipes How can I run a command on multiple files at once?
Is there an easy way of saving a command’s output?
6. Scripts, variables, and loops How do I turn a set of commands into a program?
7. Using Bash Scripts in Pipes Can I use scripts I write in pipes as well?
Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.


Setup

To participate in this lesson, you will need access to software as described below. In addition, you will need an up-to-date web browser.

The instructions for all the software can be found on the setup page.