# bhuvan-raj/shellscripting-from-scratch architecture

> Architecture diagram of the GitHub repository bhuvan-raj/shellscripting-from-scratch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhuvan-raj/shellscripting-from-scratch
- Repository: https://github.com/bhuvan-raj/shellscripting-from-scratch

## Overview

This repository is a Bash learning course, not a runnable application: its principal workflow is for a learner to progress from shell basics through control flow and functions, then study system-administration automation examples. The README describes the capabilities of each lesson and several integrations, but no source excerpts are available, so the graph shows documented learning relationships and documented external interactions only; it does not infer calls between lesson modules.

Main entry points: [`Disk-Usage-Alert/README.md`](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Disk-Usage-Alert/README.md) (Disk Usage Alerts), [`Log-Backup/README.md`](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Log-Backup/README.md) (Log Backup), [`Service-Status-Check/README.md`](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Service-Status-Check/README.md) (Service Status Check), [`CPU-Monitoring-And-Alert/README.md`](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/CPU-Monitoring-And-Alert/README.md) (CPU Monitoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Shell Foundations"]
  node_basics["Shell Basics<br/>[README.md]"]
  node_testing["Tests and Operators<br/>[README.md]"]
end

subgraph group_control["Scripting Concepts"]
  node_conditionals["Conditional Statements<br/>[README.md]"]
  node_loops["Loops<br/>[README.md]"]
  node_functions["Functions and Advanced<br/>[README.md]"]
end

subgraph group_automation["System Automation"]
  node_logbackup["Log Backup<br/>[README.md]"]
  node_diskalert["Disk Usage Alerts<br/>[README.md]"]
  node_servicecheck["Service Status Check<br/>[README.md]"]
  node_cpualert["CPU Monitoring<br/>[README.md]"]
end

node_learner(("Learner"))
node_cron["Cron Scheduler"]
node_email["Email Notifications"]
node_systemctl["systemctl"]

node_learner -->|"starts with"| node_basics
node_learner -->|"studies"| node_testing
node_learner -->|"studies"| node_conditionals
node_learner -->|"studies"| node_loops
node_learner -->|"studies"| node_functions
node_learner -->|"studies"| node_logbackup
node_learner -->|"studies"| node_diskalert
node_learner -->|"studies"| node_servicecheck
node_learner -->|"studies"| node_cpualert
node_logbackup -->|"schedules with"| node_cron
node_diskalert -->|"sends alerts"| node_email
node_diskalert -->|"schedules with"| node_cron
node_servicecheck -->|"restarts via"| node_systemctl
node_cpualert -.->|"sends alerts"| node_email

click node_basics "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Introduction-to-shell-and-basics/README.md"
click node_testing "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Conditional-Testing-and-Operators/README.md"
click node_conditionals "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/conditional-statements/README.md"
click node_loops "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Looping-Statements/README.md"
click node_functions "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Shellscripting/README.md"
click node_logbackup "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Log-Backup/README.md"
click node_diskalert "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Disk-Usage-Alert/README.md"
click node_servicecheck "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Service-Status-Check/README.md"
click node_cpualert "https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/CPU-Monitoring-And-Alert/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_basics,node_testing toneBlue
class node_conditionals,node_loops,node_functions toneAmber
class node_logbackup,node_diskalert,node_servicecheck,node_cpualert toneMint
class node_learner,node_email,node_systemctl toneIndigo
class node_cron toneRose
```

## Components

### Shell Foundations

- [Shell Basics](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Introduction-to-shell-and-basics/README.md): `Introduction-to-shell-and-basics/README.md`
- [Tests and Operators](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Conditional-Testing-and-Operators/README.md): `Conditional-Testing-and-Operators/README.md`

### Scripting Concepts

- [Conditional Statements](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/conditional-statements/README.md): `conditional-statements/README.md`
- [Loops](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Looping-Statements/README.md): `Looping-Statements/README.md`
- [Functions and Advanced](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Shellscripting/README.md): `Shellscripting/README.md`

### System Automation

- [Log Backup](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Log-Backup/README.md): `Log-Backup/README.md`
- [Disk Usage Alerts](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Disk-Usage-Alert/README.md): `Disk-Usage-Alert/README.md`
- [Service Status Check](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/Service-Status-Check/README.md): `Service-Status-Check/README.md`
- [CPU Monitoring](https://github.com/bhuvan-raj/shellscripting-from-scratch/blob/main/CPU-Monitoring-And-Alert/README.md): `CPU-Monitoring-And-Alert/README.md`

### Other components

- **Learner**
- **Cron Scheduler**
- **Email Notifications**
- **systemctl**

## Connections

- Learner → Shell Basics: starts with (evidence: `README.md`)
- Learner → Tests and Operators: studies (evidence: `README.md`)
- Learner → Conditional Statements: studies (evidence: `README.md`)
- Learner → Loops: studies (evidence: `README.md`)
- Learner → Functions and Advanced: studies (evidence: `README.md`)
- Learner → Log Backup: studies (evidence: `README.md`)
- Learner → Disk Usage Alerts: studies (evidence: `README.md`)
- Learner → Service Status Check: studies (evidence: `README.md`)
- Learner → CPU Monitoring: studies (evidence: `README.md`)
- Log Backup → Cron Scheduler: schedules with (evidence: `README.md`)
- Disk Usage Alerts → Email Notifications: sends alerts (evidence: `README.md`)
- Disk Usage Alerts → Cron Scheduler: schedules with (evidence: `README.md`)
- Service Status Check → systemctl: restarts via (evidence: `README.md`)
- CPU Monitoring → Email Notifications: sends alerts
