Welcome to the home page of the Introduction to Linux / UNIX and the Bash shell course of the University of Lausanne CAS in Data Stewardship.
This course provides an introduction to the open-source Linux / UNIX operating system and the Bash shell.
🔥 Important: this course requires participants to prepare before the in-person class. Please make sure to:
- Set up your environment.
- Complete the pre-course tasks.
The only technical requirement for the course is a laptop with a bash shell
(version >= 4.0) or a zsh shell (the default shell on macOS since 2019)
installed.
- You can display your version of
bashwith the command:bash --version - Please read the environment setup instructions for details. Make sure to set up your environment before the start of the course.
This course provides an introduction to using the Linux / UNIX operating system via the command line interface (CLI), as well as an introduction to the Bash shell and some of the Linux / UNIX core commands.
More specifically, the course covers the following topics:
- What is Linux / UNIX and why use it ?
- Navigating the filesystem.
- Shell expansions: brace, tilde, and filename expansion.
- File and directory management: create, move, copy, delete.
- File access permissions and ownership.
- Locating files: the
findcommand. - Displaying file content.
- Archiving and compressing data.
- Standard input/output and pipes.
- Text processing utilities:
wc,tr,sort,uniq,cut,diff,cat,paste. - Introduction to
grepand regular expressions.
Due to limited in-class time (0.5 days), this course requires participants to self-study before and after the class.
We kindly ask you to complete the following tasks before the course:
- Set up your environment (~0.5h).
- Complete chapters 1 to 4 of the SIB UNIX fundamentals e-learning module (~3h):
- Complete exercises 1 and 2 of the
course exercises (~1h).
- For exercise 1, please also complete the Additional task sections.
- For exercise 2, the Additional task sections are optional.
During the in-class part of the course, the following topics will be covered.
- Theory presentation (course slides).
- Exercises 3, 5, and 7A.
Exercises to do on your own, after the class.
- Exercises 4, 6, and 7B (~2h).
- The Additional task sections of the exercises are optional.