An intro to the basics that instructors often assume you know, but that you probably never had good instruction on! After this course, you should be able to more easily start learning to program (e.g., in R or python), follow instructions and documentation online (e.g., StackExchange), and communicate better with your collaborators who are programming. This interactive workshop will cover:
- *NIX type systems
- BASH
- Common terminal commands
- Loops and variables
Technology requirements:
1. Please install the Bash shell. Bash is a commonly-used shell that gives you the power to do simple tasks more quickly. Instructions for installation can be found below.
Windows
- Download the Git for Windows installer.
- Run the installer and follow the steps bellow:
- Click on "Next".
- Click on "Next".
- Click on "Next".
- Click on "Next".
- Click on "Next".
- Select "Use Git from the Windows Command Prompt" and click on "Next". If you forgot to do this programs that you need for the workshop will not work properly. If this happens rerun the installer and select the appropriate option.
- Click on "Next". Keep "Checkout Windows-style, commit Unix-style line endings" selected.
- Select "Use Windows' default console window" and click on "Next".
- Click on "Next".
- Click on "Finish".
This will provide you with both Git and Bash in the Git Bash program.
Mac OS X
The default shell in all versions of Mac OS X is Bash, so no need to install anything. You access Bash from the Terminal (found in /Applications/Utilities
). You may want to keep Terminal in your dock for this workshop.
Linux
The default shell is usually Bash, but if your machine is set up differently you can run it by opening a terminal and typing bash
. There is no need to install anything.
2. nano is a basic editor and the default that we use in this class. Instructions for installation can be found below.
Windows
To install it, download the Software Carpentry Windows installer [http://files.software-carpentry.org/SWCarpentryInstaller.exe] and double click on the file to run it. This installer requires an active internet connection.
Mac OS X
nano is a basic editor and the default that we use in this class. It should be pre-installed.
3. Please download the Github repository with all materials for this workshop. Go to https://github.com/dlab-berkeley/programming-fundamentals, click on the green button labeled "Clone or download", and select "Download ZIP." Then unzip the downloaded file and place the folder on your desktop.