Your first shell script
Lesson 20 of 20 · Term.Micro
Shebang, arguments, if and for: automate what you just learned.
The first line #!/bin/bash (the shebang) says which program runs the file. Make it executable with chmod +x, then run it with ./name.sh.
Check yourself
What is the shebang line?
Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.
Start this lesson — free