ScriptingLesson 44Free preview
Bash Syntax
This lesson is part of Bash · All levels
Summary
The Bash syntax has a simple rule: one command per line, end with Enter, and the # is used for comments. You can combine the command with;, &&, or ▽, and then break the long line with the continuous. Bash is also case-sensitive, so echo and echo are different.
Key points
- One line one command, # start comment
- && running next only if the previous success
- Run the next one only if the previous one failed
- The backslash marks at the end of the line continue the command
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.