---
# System prepended metadata

title: '2020-11-03 <br> HPC0: Introduction to Linux'

---

# 2020-11-03 <br> HPC0: Introduction to Linux


Welcome to the hack pad for today's HPC0 course from Research Computing at the University of Leeds!

**Contact Research Computing** - https://bit.ly/arc-help
**Presentation for today** - https://bit.ly/hpc0linux
**Exercises for today** - https://drive.google.com/file/d/1dV8fMS_n6GOFZO_rmFfUBwnuBFGj6C58/view?usp=sharing

**Approximate schedule**


| Time     | Agenda                          |
| -------- | ------------------------------- |
| 0900     | Introduction, connecting to ARC |
| 0950     | Break                           |
| 1000     | Navigating the shell            |
| 1050     | Break and Exercise 1            |
| 1100     | Data transformation in the shell|
| 1150     | Wrap up and questions           |


## Further reading

Linux crib sheet that covers lots of idea from today and beyond - https://drive.google.com/file/d/0B4hIpRJzq8DPVG5xdEJWcGlRTkU/view?usp=sharing


## What's your name and where do you come from? - <br> Make a new line below and write a bit about yourself

Alex Coleman - Research Software Engineer

John Hodrien - Research Software Engineer.  Been working with Linux for >20 years.  Former Computer Scientist.

Nick Rhodes - Research Software Engineer, working in the Research Computing team with Alex and John.

Will Eaton - Mres student with Dixon group 

Dan Lucas - MChem Student with the Heard group, looking at low T reactions important to the interstellar medium.

Josh Cottom - post doc in Civil Engineering looking at mapping marine litter

Jess Baker - postdoc studying tropical forests and climate change

Aakash Gupta - PhD student in School of Civil Engineering, studying geothermal energy through energy walls

Lauren Burton - first year PhD student studying palaoeclimatology and its relevance for future climate change

Aravinda Ramakrishnan Srinivasan - Postdoc in Institute for Transport Studies working on machine learned modelling of human-vehicle interaction

Fabian Limmer - From Germany, PhD student at Mech Eng, focussing on the Tribology of brake friction materials, 

Guillermo Jimenez - PhD student in school of mechanical engineering

Alex Jackson - PhD student in Chemical Engineering studying crystallisation in fuels

Callum Smith - PhD studying tropical forests and climate change in SOEE

Sam Hall - MRes Climate student doing study with turbulence in clouds

Dominique Hirsz - PhD student in Centre for Plant Sciences studying temperature regulation in wheat

Adam Welch - PhD in Chemistry. Looking into Atmospheric Chem of Mars. Will be using HPC, Fortran and Python in modelling Mars atmo.

Binghan Liu - PhD student in Physics and Astronomy, atmosphere simulation of terrestrial exoplanets

Fan Qiao - PhD studnt in Atmospheric Science

Ahrar Hamad- PhD student at Electrectical & Electronics Engineering

## Useful commands

* mkdir:
    * Make a directory - `mkdir example`
    * Make a directory and intermediates - `mkdir -p one/two/three`
* cd: Change directory - `cd example`
    *    Go up a directory - `cd ..`
    *    Go home - `cd`
    *    Go back to where you were previously - `cd -`
* pwd: Print Working Directory - `pwd`
* ls: list files in a directory - `ls`
* nano: simple editor - `nano example.txt`
* cat: Print a file - `cat example.txt`
* less: Show a file letting you browse/search - `less example.txt`
* ^C: How to abort a program (Control-C)
* mv: Move/rename a file
    * Move to a another directory - `mv example somedir`
    * Rename - `mv example.txt other.txt`
    * Move and rename - `mv example.txt somedir/other.txt`
* rm:
    *  Delete a file - `rm file`
    *  Delete a directory and contents - `rm -r directory`
* cut: Select a bit of text - `echo "one,two" | cut -d, -f2`
* awk: For when you don't want cut - `echo "one,two" | awk -F, '{print $2}'`
* \>: Redirect to file - `echo rabbits > some-file`
* \<: Redirect from file - `cat < some-file`
* sort: Sort a file - `sort some-file`
* head: Show the top lines from a file - `head some-file`
* tail: Show the last lines in a file - `tail some-file`
