Bash Scripting
(optional)

If you completed any of the courses listed in the Unix Shell section, you should already be familiar with the concept of Bash Scripting. In a nutshell, bash scripts are Unix commands strung together and executed as individual files. 

The reason why we include here a specific section on Bash Scripting is because learning Unix commands and learning Bash Scripting are related but distinct skills:

  • Usage: you use Linux commands directly in the terminal to perform one-off tasks or queries, while Bash scripting involves writing a series of Linux commands and logic in a script file (usually with a .sh extension) that can be executed as a program. These scripts can be reused and shared.
  • Skill level: learning basic Linux commands is typically one of the first skills people acquire when using Linux. It's relatively straightforward and essential for anyone working with a Linux system, whereas Bash scripting is more advanced and requires a deeper understanding of the shell's scripting capabilities, including variables, loops, conditionals, and functions. It's typically a skill acquired after becoming comfortable with Linux commands.
  • Learning Approach: Learning Linux commands is often a matter of memorization and understanding the basic syntax of each command. It's more about knowing what commands are available and when to use them. On the other hand, Bash scripting involves learning programming concepts and how to apply them within the Bash shell. This includes learning variables, loops, conditionals, and writing reusable code.

While mastering essential Linux commands is foundational and crucial for basic system interaction, Bash scripting represents a more advanced progression, and as such, it might not be necessary for all users. However, for those wanting to dig a bit deeper on the subject, we recommend some courses below.

TO DO

This "Bash Scripting" tutorial by Ryan Chadwick is a continuation of the Linux Tutorial we recommended in a previous section, and will give you a solid foundation on how to write Bash scripts

TAKE THE COURSE