# My First Linux Shell Script – A Small Step into DevOps

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

```plaintext
#!/bin/bash

#create a directory
mkdir Folder2

#creat a file inside a folder
touch Folder2/file1
touch Folder2/file2
```

---

## ▶️ How I Executed the Script

1. Gave execute permission:
    

```plaintext
chmod +x first-shell-script.sh
```

2. Ran the script:
    

```plaintext
./first-shell-script.sh
```

3. Verified the output:
    

```plaintext
ls Folder2
```

Output:

```plaintext
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`) works
    
* Why **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**.
