Ad space (banner)
Lesson 1 / 20

Setting up (what you'll need)

To write shell scripts you will need the following. A shell script gathers the commands you would type in a terminal into a file you can run — an essential skill for server administration and for automating work.

  • A terminal: Mac and Linux ship with bash or zsh. On Windows, the usual route is WSL (Windows Subsystem for Linux).
  • For an editor, the easiest route is VS Code with the ShellScript extension.
  • Writing #!/bin/bash at the top of a file and giving it execute permission (chmod +x) is what lets you run it as a script.
← Previous lesson Next lesson →
Ad space (banner)
Ad space (in-article)