Skip to content

Latest commit

 

History

History
121 lines (90 loc) · 4.64 KB

README.md

File metadata and controls

121 lines (90 loc) · 4.64 KB

Intro to the Linux Command Line

This presentation

https://github.com/gabeclass/introlinux

About

These are reference materials for the PiCSciE workshop Intro to the Linux Command Line at Princeton. Most of material is covered interactively and adapted as much as possible to the audience at any given workshop. At the start of the workshop, participants will see how to capture every command they type, along with the output and any notes and comments -- everyone will have a personalized record of what happens in the session. Consequently, very little is posted on this page.

This workshop does not assume prior experience with Linux/Unix systems or the bash shell, nor does it assume that you have previously worked with a command-line interface (CLI) to a computer.

Adroit

The workshop does assume that you have an account on the Adroit cluster (this is a shared Linux cluster at Princeton on which we will do our work). You do not yet need to know how to access Adroit via SSH. Instead, most of the workshop will rely on a web interface called myAdroit that provides a command-line shell plus a graphical file browser.

To connect to myadroit, you must be on the Princeton eduroam network (the puvisitor network will not allow a connection to Adroit), and you must be able to Duo authenticate. If you were off campus, you would be establish a connection to Princeton's VPN first. OIT has instructions for how to do that.

When you're ready, please log in to myadroit here.

WARNINGS!

  • Linux is case-sensitive (macOS may or may not be, depending on how your hard drive's filesystem was configured).

  • The command-line is unforgiving! Type things EXACTLY as you see them, and avoid interpreting (and don't assume the computer will interpret anything for you -- be precise).

For one of our exercises

The URL below takes you to a plain text version of the US Declaration of Independence:

https://www.constitution.org/usdeclar.txt

Instructions for setting up SSH keys (passwordless SSH)

Set up SSH keys

Google Survey

Near the end of the workshop, you'll be asked to fill out a brief (3-5 mins) survey. When the time comes, please click here.

Resources for further study

  • The Linux Command Line (a book by William Shotts -- free PDF online

  • Introduction to Linux: A Hands on Guide (a book by Machtelt Garrels -- free PDFs discoverable online; full HTML version is online)

  • Afternoon session (Intro to HPC on the Princeton Clusters)

  • Wednesday session (Command Line Power Tools -- moves faster, a bit more advanced, but worth seeing even if you can't keep up this time around)

Authorship

This workshop was prepared by Gabe Perez-Giz. It incorporates some elements from an earlier incarnation of this workshop by Ben Hicks and borrows some pieces from Jonathan Halverson.