2.1.2 ‐ Dev Tools - Zach-ATK/reading-notes GitHub Wiki

2. Dev Tools

Topic of Discussion:

Begin with a statement addressing why this topic matters as it relates to what you are studying in this module.
What is Bash?
This article summarizes the usage of terminals and bash shells within linux. Providing context and understanding as to why linux relies so heavily on shells to provide functionality and versatility to the system.

Prompt Questions:

Answer each and every question or prompt presented in the assignment above.

1. What is the primary function of a shell in a computer’s operating system?

  • to be a command line interface, providing users the ability to run commands and scripts in a text environment.

2. How does Bash locate and execute commands on a Linux or Unix system?

  • Bash will search specific directories to see if the command exists. If the command exists, it will execute the command. 1

3. How can you determine if your system is running a Bash shell?

  • by typing echo $0.1

4. What makes Bash scripting powerful and why is it considered scriptable?

  • Because you can create a file that contains a collection of commands (script) and have the entire script run by simply opening that file. For instance, you can make a file (sudo vim /home/script1.sh) and type in that script:

sudo apt update && apt upgrade -y echo Great Job - Everything is updated and ready to go
:wq to save and exit
sudo chmod 755 + X /home/script1.sh to make it executable and to ensure you can run it
/home/script1.sh to run the command\

5. Bash scripting allows for customization, automation, and efficiency. Discuss methods or practices from your previous work experience or cultural background that aim to achieve similar goals in daily tasks.

  • I have relied heavily on excel and vba to improve on customization, automation, and efficiency. At one point in time, I used MS Access to collect multiple excel files, convert them into one database, and provide automations to update all excel files as changes were made. Additionally, this provided a visual framework for human usage.

Things I want to know more about

Make a section in your notes titled Things I want to know more about, and anytime a question arises in your mind, or something catches your curiosity, note it under this heading.\

  1. helpful scripts.

1 https://opensource.com/resources/what-bash

⚠️ **GitHub.com Fallback** ⚠️