- Link: TryHackMe - Bash Scripting
- Difficulty: Easy
- Category: Scripting
According to TryHackMe, in this room you will learn:
- Bash Syntax: Fundamental structure of bash scripts.
- Variables: How to declare and use variables.
- Parameters: Using command-line arguments in scripts.
- Arrays: Handling collections of data.
- Conditionals: Implementing logic with if/else statements.
- Basic Linux CLI: Familiarity with the terminal and basic commands (ls, cd).
- Task 1: Introduction - Overview of the room and bash scripting.
- Task 2: Our first simple bash scripts - Writing and running basic commands in a
.shfile. - Task 3: Variables - Storing and accessing data.
- Task 4: Parameters - Using positional arguments (e.g., $1, $2).
- Task 5: Arrays - Basics of bash arrays.
- Task 6: Conditionals - Using
if,else, and comparison operators. - Task 7: Further reading - Resources for advanced scripting.
Based on TryHackMe content. Compiled by Amit Padhan