Member-only story
Bash Scripting Tryhackme writeup
This is a Writeup of Tryhackme room “Bash Scripting”
https://tryhackme.com/room/bashscripting
Room link: https://tryhackme.com/room/bashscripting
Note: This room is free
Task 2: Our first simple bash scripts
Ok now that we have had a brief introduction to what bash is and what it is used for let’s jump right into some examples!
First of all let’s lay out our structure.
A bash script always starts with the following line of code at the top of the script.
Image source https://carbon.now.sh/
This is so your shell (whatever type of it) knows that it needs to run your file using bash in the terminal.
Lets get into some basic examples.
This will return the string “Hello World”. The command “echo
” is used to output text to the screen, the same way as “print
” in python. I suggest you…