Introduction to Linux and High-Performance Computing#
An OS is a resource manager that is used to access system resources by users and application programs. Linux is an open source OS developed by Linus Torvalds. Linux is based on Unix, and therefore shares much of its functionality with other unix based operating systems (such as MacOS.) Linux is the most widely used OS in computational research groups and runs much of the internet because it is freely available.
Lectures#
HPC.1 Introduction to Linux Computing HPC.2 Slurm/Bash Scripting
The Linux Terminal#
Please make sure you can open a terminal
You issue commands in the terminal
more complicated than you’re used to, but much more powerful once mastered
this lets you navigate file systems, edit files, and run code
start by typing
lslslists files in your current directorymost common command
Moving Through File Structures#
run
pwdThis stands for “print working directory”
shows you where you are
you’re inside a file system in your “home directory”
There is the “root” directory which is “/” and a few beneath it
“Users” is where user home directories are kept
The ls Command#
run
ls -Fshows the slashes
run
ls -F /ls -f /tmpls --helpfor helpman lsgive the manual (press “q” to exit this)ls -jdoesn’t workwhat does
ls -ldo?ls -F -ato see hidden files
The cd Command#
cdlets you change directoriescd /this takes us to the root directory
cd ~tidle is always your home directory
.is the current directory..is one directory upcd .cd ..
Quick Problem#
if pwd shows /Users/thing what will ls -F ../backup display
Making Files and Directories#
mkdirmakes directoriesmkdir thesiscd datanano draft.txtwrite something
ctrl + Xsaves and quits^isctrlediting files in terminal is important for research
Questions
Removing Files#
be extremely careful
no recycle bin in linux
rm [filename]rm -rfor folders
Running Code#
for our purposes we’ll use
python [program name]make a python script
run script
Scripts, Environments, and Aliases#
terminals are running a “shell” program. Most commonly, basic shell, or “bash” (other options: c shell, fish, etc.)
shell commands can be strung together and combined with loops/conditions to form “scripts” (usually .sh files)
by default, a “run commands” or “rc” script will be run when the shell starts (usually ~/.bashrc)
shells can access “environment variables” which tell them where files live (e.g. \(PATH, \)PYTHONPATH)
aliases can be used to create shortcuts and make new commands
Using ssh To Get Onto The Supercomputer#
ssh is a secure remote linux terminal
can be done through other programs on windows like Putty
It is important to note that, in order to access PACE, your internet connection must be through GT’s VPN. This is true even when connected to campus wifi.
ssh -X [username]@login-ice.pace.gatech.edu-Xallows visual data to be sent to your computer
Linux Cluster Supercomputers#
pace is a Linux cluster supercomputer
It is several computers all running linux connected together
Supercomputers are not one big fast computer, it is many reasonably fast computers connected together

If you want to learn more about PACE-ICE works, you can visit PACE-ICE Documentation.