# 🚀 Day 6 of 100 Days of DevOps – Automating System Health Reports with Bash


After learning the basics of Bash scripting (variables, loops, conditions, functions), I wanted to apply all that into something real. So for Day 6, I built a system health report automation script.
This script gives you a summary of your system: disk space, memory usage, top processes, uptime, IP, and more — all in a single command.
🧠 What I Built
A script called automation.sh
that outputs:
📅 Current date/time
🔄 Uptime
💽 Disk usage
🧠 Memory usage
🔥 Top CPU & Memory processes
👥 Logged-in users
🌐 IP address
🛠️ Code Snippet: automation.sh
#!/bin/bash
echo "📅 Date and Time: $(date)"
echo "🔄 Uptime:"
uptime
echo "💽 Disk Usage:"
df -h
echo "🧠 Memory Usage:"
free -h
echo "🔥 Top CPU Processes:"
ps aux --sort=-%cpu | head -6
echo "💾 Top Memory Processes:"
ps aux --sort=-%mem | head -6
echo "👤 Logged-in Users:"
who
echo "🌐 IP Address:"
hostname -I
echo "✅ Report Complete"
📥 How to Use It
chmod +x automation.sh
./automation.sh
📂 GitHub Repository
📍 Day 6 Folder – DevOps Journal
🧾 What I Learned
How to automate real-world tasks with Bash
Combining Linux commands inside functions
Sorting processes by memory/CPU
Using
df
,free
,ps
,who
, andhostname
in scripts
🧪 Bonus: Created a Cheatsheet
I documented every command I used and its output in a Markdown file:
🔮 What’s Next
Tomorrow I’ll move into Git remotes and GitHub collaboration (Day 7), including:
Cloning repositories
Pushing/pulling code
Git logs and branches
💬 Let's Connect
If you're on a similar DevOps journey, let’s connect!
#devops #linux #bash #automation #100DaysOfDevOps #learninginpublic
Subscribe to my newsletter
Read articles from Ritesh Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Ritesh Singh
Ritesh Singh
Hi, I’m Ritesh 👋 I’m on a mission to become a DevOps Engineer — and I’m learning in public every single day.With a full-time commitment of 8–10 hours daily, I’m building skills in: ✅ Linux✅ Git & GitHub✅ Docker & Kubernetes✅ AWS EC2, S3✅ Jenkins, GitHub Actions✅ Terraform, Prometheus, Grafana I post daily blogs on Hashnode, push projects to GitHub, and stay active on LinkedIn and Twitter/X. Let’s connect, collaborate, and grow together 🚀 #100DaysOfDevOps #LearningInPublic #DevOps