Welcome to the class!
Below are the instructions on how to use this repository.
Note: The videos are restricted to ICL students and staff.
-
This class uses Jupyter Notebooks, decide if you want to use Google Colab or Anaconda on your own computer. Make sure that you test your setup before the class so you can follow from the start. Try the following on one or two notebooks
-
Method 1 - Google Colab in your browser and a command line application:
- Log into your Google account
- Click on blue Colab links below
- When open, save the notebooks in your drive with "File"->"Save a copy in Drive". This will let you execute commands in the code cells.
- In notebooks 2 to 8, test the first code cell to download the practice data - this will have to be done for each notebook during the class, the data does not persist
- Windows users will also need a separate command line application; choose one of the following.
- Git for Windows - relatively easy to install, no admin privileges required, installation video
- Windows subsystem for Linux - recommended but requires admin privileges
- Download practice files for use with a command line application. Place the data-shell directory on your desktop. Alternatively, you can use one of the following commands directly on the command line.
- wget https://kmichali.github.io/SC-shell-novice/data/data-shell.zip; unzip data-shell.zip
- curl https://kmichali.github.io/SC-shell-novice/data/data-shell.zip -o data-shell.zip; unzip data-shell.zip
-
Method 2 - Anaconda on your own computer (please note that Windows users reported problems with using the course notebooks without enabling Windows subsystem for Linux - see above):
-
Using the repository for learning (if you are attending a Graduate School class, we will do this together)
- In the directory "notebooks", there are eight notebooks with video links.
- 01 - Introduction and setup
- 02 - Navigating files and directories
- 03 - Working with files and directories
- 04 - Pipes and filters
- 05 - For loops
- 06 - Shell scripts
- 07 - Finding things
- 08 - Nelle's shell script
- Open the first notebook in Anaconda or in Colab.
- Keep doing so until you have seen all eight notebooks.
Happy scripting!
Notebooks 1 to 7 are based on a snapshot of the Unix Shell lesson from the Software Carpentry.
- Local tutorials - systematic with lots of examples (ICL access only) - Bash fundamentals, Bash scripting
- Steve Parke's Bash tutorial - with Linux administration spin
- The Linux documentation project - the most complete guide you can imagine
- The Bash hackers wiki - if you are looking for cool features
- Short examples to play with
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.