My First Linux Shell Script – A Small Step into DevOps
I am an IT professional currently upskilling in DevOps, with 4 years of experience in software testing and automation. I worked as an API Tester at Capgemini for 2 years, where I was responsible for validating REST APIs, analyzing request and response payloads, and ensuring backend services met functional, performance, and quality standards. I also worked as a Mobile Application Tester at Talentgrid for 2 years, where I led the automation effort as the only automation tester on the project. I successfully designed and implemented end-to-end mobile automation using the Maestro automation tool, significantly improving test coverage, execution efficiency, and release stability. I am passionate about continuous learning and currently focused on building strong expertise in DevOps practices and cloud technologies, while leveraging my testing and automation background to deliver scalable and reliable software solutions.
When preparing for a DevOps role, I realized that strong fundamentals matter more than jumping directly into tools.
So I started with Linux shell scripting.
This post documents my first shell script, what it does, and what I learned from it.
📌 Objective of the Script
The goal of this script is simple:
Create a directory
Create files inside that directory
Execute the script using proper permissions
This helped me understand how scripts run in Linux and how automation begins at a very basic level.
📝 The Shell Script
#!/bin/bash
#create a directory
mkdir Folder2
#creat a file inside a folder
touch Folder2/file1
touch Folder2/file2
▶️ How I Executed the Script
- Gave execute permission:
chmod +x first-shell-script.sh
- Ran the script:
./first-shell-script.sh
- Verified the output:
ls Folder2
Output:
file1 file2
🧠 What I Learned from This
Even though this is a small script, it helped me understand several important Linux concepts:
How the shebang (
#!/bin/bash) worksWhy execute permission is required for scripts
How Linux handles directory and file creation
How automation starts with small, repeatable tasks
This also reinforced the idea that Linux is strict, predictable, and powerful when used correctly.
🔍 Why This Matters for DevOps
DevOps is not just about tools like Docker, Kubernetes, or CI/CD pipelines.
It starts with:
Understanding Linux
Writing scripts
Automating repetitive tasks
Knowing how systems behave
This small script is my first step toward that journey.