RSE: How to
  • Home
  • Virtual machine template
  • SSD notes
  1. Basic Linux
  2. Intro to Linux
  • Introduction
    • Course page
    • Introduction Slides
  • Basic Linux
    • Intro to Linux
    • Linux 101 slides
  • Managing dependencies
    • Basic dependencies in Python
    • Dependency slides
    • Conda skills
    • Figuring out dependencies for old code
  • Version control with git
    • Introduction to Version Control
    • Version control intro slides
    • Version control and Jupyter Notebooks

On this page

  • Frequently used commands: cheat sheet
  1. Basic Linux
  2. Intro to Linux

Linux 101

Very basic introduction to the Linux command line
Author

Maeve Murphy Quinlan

Published

February 17, 2025

This is a modified version of the course presentation for HPC0: Introduction to Linux for HPC, if you’re very unfamiliar with the material shown here, there’s some additional homework for you between courses.

You can follow along with the presentation notes here:

Launch fullscreen presentation ⤢

Launch your virtual machine to test out these notes here:

Launch codespaces virtual machine ⇗

Frequently used commands: cheat sheet

Command Description
cd Change directory to home
cd dir-name Change directory to dir-name
pwd Print the current working directory - where am I?
name --help Load the manual for name - on Codespaces
man name Load the manual for name - on Aire/ARC
ls List the contents of a directory
cat file-name Print out the contents of a file called file-name
mkdir dir-name Make a new directory called dir-name
touch file-name Make a new file/update the last-edited date of a file called file-name

Some more cd commands:

Command Description
cd .. Go up a level to the parent directory
cd - Go back to the previous directory
cd ~/dir-name Go to dir-name, a directory in the home directory

Some more ls commands:

Command Description
ls -F List the contents of a dir, with symbols for content type
ls -a List all contents, including hidden files and directories
ls -l List contents, including permissions, the owner and their “group”, and when the content was edited

Commands for working with files and directories:

Command Description
cp
mv
rm
mkdir -p dir-name Make a new directory call dir-name if it doesn’t already exist
Back to top

Citation

BibTeX citation:
@online{murphy_quinlan2025,
  author = {Murphy Quinlan, Maeve},
  title = {Linux 101},
  date = {2025-02-17},
  url = {https://murphyqm.github.io/research-software-dev/intro-to-linux-files/intro-to-linux-page.html},
  langid = {en}
}
For attribution, please cite this work as:
Murphy Quinlan, Maeve. 2025. “Linux 101.” February 17, 2025. https://murphyqm.github.io/research-software-dev/intro-to-linux-files/intro-to-linux-page.html.
Introduction Slides
Linux 101 slides