← All courses

Your first bash script

You'll write your first scripts: with a shebang and execute permission, variables and arguments, `if` conditions, a `for` loop and the right exit code.

7 tasks · 2 questions
  1. Your first script: shebang and running iteasy
  2. Move the server name into a variableeasy
  3. The shebang and ways to run a scriptinterview questioneasy
  4. Script arguments: $1 and $#easy
  5. if: does the file existeasy
  6. if: compare a number with a thresholdeasy
  7. A for loop: a copy of every logeasy
  8. Exit code: a health-check scripteasy
  9. What an exit code isinterview questioneasy