Intermediate BASH and Linux¶
Repository: https://github.com/UPPMAX/linux-command-line-201 Rendered material: https://uppmax.github.io/linux-command-line-201/
Meeting 3 April 13.00¶
- Where do we meet online?
- [YES] the HPC Python meeting room: RB, BB, BC
- Someplace else:
- Decide on course name, UNDECIDED
- Linux command line 102:
- Linux command line 201: RB, BB
- Intermediate Bash/Linux: BB
- Intermediate Linux and Bash: RB, BB
- [your favorite]
- Basic Linux course: https://github.com/hpc2n/linux-command-line-101
- Decide on MkDocs theme
- [DECIDED] ReadTheDocs: RB, BB, BC
- Materials: RB
- Materials with ReadTheDocs layout: BB
-
Decide on using underscores or dashes in filename
- [DECIDED] Underscores: BB, BC, RB (also: the book, page 12])
- Dashes:
-
Vote on course duration and structure
- 6 hrs in one go: ILLEGAL
- 6 hrs in total: RB, BC, BB
- 3 hrs in total: RB
- [DECIDED, depends on Joachim] 2x 3 hours: BC, BB, RB
- 201, 202 ?
-
Decide on a course date(s)
- [DECIDED] Week 23 (June 2 and June 3): MO + TU: BB, RB, BC
- [x] RB: Put on site
- MO June 2: RB
- TU June 3: RB
- WE June 4: RB
- TH June 5: RB
- MO June 16: RB
- TU June 17: RB
- WE June 18: RB
- MO June 23: RB
- TU June 24: RB
- [TOO LATE] WE June 25: RB
- [TOO LATE] TH June 27: RB
- [TOO LATE] FR June 28: RB
- [DECIDED] Week 23 (June 2 and June 3): MO + TU: BB, RB, BC
Curriculum item | Learning objective | Volunteer(s) to teach this |
---|---|---|
Bash scripting | Learners can use bash variables | RB |
Bash scripting | Learners can use bash if statements |
RB |
Bash scripting | Learners can use bash if statements with the ‘or’ and ‘and’ symbols |
RB |
Bash scripting | Learners can use bash for statements |
RB |
Bash scripting | Learners can write scripts that require user input | RB |
Environment variables | Learners can create, read and write to environment variables (e.g. [Shotts, 2024] , chapter 25, p390) |
BB |
Advanced redirect | Learners can redirect output between the standard, error and log output streams | BB |
Regular expressions | Learners can use . , * , + , ? , [] , [^] , {} , () in regular expressions (19. What are Regular Expressions?, p266-onward)(or any regular expressions course) |
RB, ?BC |
Regular expressions | Learners can use grep for pattern matching |
RB, ?BC |
Regular expressions | Learners can use sed for pattern matched replacing |
BC |
Links (hard/soft) | Learners can create soft and hard symbolic links (e.g. [Shotts, 2024] , ‘3. Symbolic Links’, p24) |
BB |
Archiving/Compressing data | Learners can compress and extract data, using (g)zip and tar |
BC |
Linux pipe | Learners can chain commands using the Linux pipe (6. Pipelines, p63-p64) | RB, BB |
Finding information | Learners have practiced using a book on bash/Linux | . |
Quality of life | Learners can start a background process with & and terminate it |
BC |
Quality of life | Terminal shortcuts/usage | BC |
Quality of life | Editing a .bashrc |
BC |
Quality of life | Using aliases | BC |
Linux tools | cut |
RB, BC |
Linux tools | dos2unix , unix2dos |
RB |
Linux tools | wc |
RB, BC, BB |
Linux tools | awk |
RB, BC |
- [ ] BB: Contact Joachim
Next meeting:
- [DECIDED] WE Apr 9 13:00-13:30: BB, BC, RB
Welcome ad (Living document)¶
In this Y-hour/X-day workshop you’ll learn how to work smarter from a command line. To do so, you’ll learn more Bash commands, scripting and some quality of life topics. You can run on your own (Linux) computer or on your favorite HPC cluster.
At the end of the day, you should feel to be able to work smarter and able to avoid more grunt work (i.e. anything that involves repeated copypaste).
The workshop is intended for users with some Linux experience, see the prerequisites. You do not need to be a member of a NAISS project in order to join the workshop, as we will provide one for you.
Time: 2-3 June at 9-12
For more information and registration visit: XXX