Show Menu
Cheatography

Software Carpentry Workshop Cheat Sheet (DRAFT) by

The Unix shell has been around longer than most of its users have been alive. It has survived because it’s a powerful tool that allows users to perform complex and powerful tasks, often with just a few keystrokes or lines of code. It helps users automate repetitive tasks and easily combine smaller tasks into larger, more powerful workflows.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Introd­uction

A shell is a program whose primary purpose is to read commands and run other programs.
This lesson uses Bash, the default shell in many implem­ent­ations of Unix.
Programs can be run in Bash by entering commands at the comman­d-line prompt.
The shell’s main advantages are its high action­-to­-ke­ystroke ratio, its support for automating repetitive tasks, and its capacity to access networked machines.
The shell’s main disadv­antages are its primarily textual nature and how cryptic its commands and operation can be.

Navigating Files and Direct­ories

ls
list the contents of the current directory