Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tutorial 3: Linux Survival Guide

Objective: Master the command-line skills required to navigate Anvil, manage simulation data, and troubleshoot runs.

In HPC, there is no “File Explorer.” Everything is text-based. Mastering these commands is the difference between a 5-minute task and a 5-hour struggle.


1. Navigating the File System


2. The Power of Wildcards (*)

You will often have 100s of files (e.g., frame_1.pdb, frame_2.pdb). You don’t want to move them one by one.


3. Searching and Inspecting Files

Molecular dynamics logs can be millions of lines long. Do not use cat on them!


4. File Permissions (chmod)

If you see an “Access Denied” error, check your permissions.


5. Anvil Specifics: Modules

Software on Anvil is “hidden” until you ask for it. This prevents version conflicts.


6. Pro-Tips for Speed

  1. Tab Completion: Type cd Sc and hit Tab. It will auto-fill cd Scratch/. This prevents typos!

  2. Command History: Use the Up/Down arrows to scroll through previous commands.

  3. The Manual: Not sure what a command does? Type man ls to see the manual.


📚 External Learning Resources

If you want to dive deeper into Linux, these are the best free resources available:


Practice Exercise

  1. Go to your scratch space: cd $SCRATCH

  2. Create a “Lab1” folder: mkdir Lab1

  3. Enter it: cd Lab1

  4. Create three dummy files: touch test1.txt test2.txt log.pdb

  5. List only the .txt files: ls *.txt

  6. Check your storage usage: myquota