Gaston Sanchez
- To gain familiarity with the Shell
- Learn basic commands to navigate the file-system
- Learn how to express file paths: absolute and relative
- To gain familiarity with Git
- Creating your assignments repo in Github
This lab has two parts. The first part (30-40 mins) involves a first contact with the command line terminal (doing basic navigation of the filesystem). The second part, in turn, has to do with creating your github repository for the Stat 133 assignments.
- Make sure everybody has installed Git
- Git for Mac: https://git-scm.com/download/mac
- Git for windows: https://git-for-windows.github.io/
- Git for Linux: https://git-scm.com/download/linux
- Make sure everybody has a GitHub account
- Join github: https://github.com/join
We are going to start this lab talking about very simple bash commands. If you are a Linux user, I'm assuming that you already know how to open the command line and move around the filesystem.
Bash for Mac. For those of you using Mac, here's how to launch the so-called Terminal app:
- Go to
Applications
- Then, go to
Utilities
- And then click on the
Terminal
Bash for Windows. If you are a Windows user, I recommend using Git-Bash. Git for Windows provides a Bash emulator. If you have installed Git (for Windows), you should also have its associated Bash.
During the first 30-40 mins of the lab, work on sections 2 and 3 of the workshop The Unix Shell by Software Carpentry
You may need to download a zip file to follow the lessons of the workshop, available here: http://swcarpentry.github.io/shell-novice/setup/
During the second part of the lab, follow the instructions in the lab file lab03-hws-repository.md "Github repo for Stat 133".
(I'm assuming that you have Git setup in your machine).
If you are new to Git and GitHub, you may want to work on the Version Control with Git workshop by Software Carpentry, especifically parts 3 to 7 (I'm assuming that you have Git setup in your machine).
-
Learn Enough Command Line to Be Dangerous by Michael Hartl
-
Part 1: The Basics from the ebook Learn Version Control with Git by Tower
-
Chapters 1 Getting Started, and sections 2.1 to 2.5 in chapter 2 Git Basics, of the Pro Git by Scott Chacon and Ben Straub.