Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gabeclass/introlinux

Intro to the Linux Command Line (PICSciE)
https://github.com/gabeclass/introlinux

Last synced: 11 days ago
JSON representation

Intro to the Linux Command Line (PICSciE)

Awesome Lists containing this project

README

        

# Intro to the Linux Command Line

## This presentation

[https://github.com/gabeclass/introlinux](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](https://princeton.service-now.com/snap?id=kb_article&sys_id=ce2a27064f9ca20018ddd48e5210c745)
for how to do that.

When you're ready, please log in to myadroit
[here](https://myadroit.princeton.edu/).

## **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](https://www.constitution.org/usdeclar.txt)

## Instructions for setting up SSH keys (passwordless SSH)

[Set up SSH keys](https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys-on-ubuntu-1604)

## 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](https://forms.gle/Z5Q4CfEh6nJH4uJQ6).

## Resources for further study

* _The Linux Command Line_ (a book by William Shotts -- [free PDF
online](http://linuxcommand.org/tlcl.php)

* _Introduction to Linux: A Hands on Guide_ (a book by Machtelt
Garrels -- free PDFs discoverable online; [full HTML
version](https://www.tldp.org/LDP/intro-linux/html/) 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)


## Getting Help Later

If you encounter difficulties working on the PU computing systems or
have basic Linux questions, please drop in to one of PICSciE's twice
weekly live
help sessions
, visit our blog
[*OnComputingWell*](https://oncomputingwell.princeton.edu) to see if
someone has answered your question, post your question on our Q&A site
[AskRC](https://researchcomputing.princeton.edu/about/contact/ask-research-computing),
or send an email to [email protected].

## 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.