Summary

  • This text discusses Bash Scripting, where a series of Bash commands are written in a text file, which can be executed automatically.
  • Bash is a common shell language, acting as a sort of “recipe” for the computer to follow for automated tasks.
  • Scripting can be used to perform repetitive tasks, for instance, organising files or running backups.
  • It can also be used for more complex tasks, such as searching a text file for specific information and displaying the results.
  • To write a Bash script, you start with a shebang line, such as #!/bin/bash, before adding commands that would typically be typed into a terminal.
  • Once the script has been written, it can be executed, causing the Bash shell to run each command in order.
  • This automation can save time and reduce the potential for human error.

By Yamini Yadav

Original Article