<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dasun-Devops on Medium]]></title>
        <description><![CDATA[Stories by Dasun-Devops on Medium]]></description>
        <link>https://medium.com/@DasunSandeepa?source=rss-becb454da41f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MBibDAb1CTgno5mf</url>
            <title>Stories by Dasun-Devops on Medium</title>
            <link>https://medium.com/@DasunSandeepa?source=rss-becb454da41f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:40:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@DasunSandeepa/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Learned Linux & Shell Scripting for DevOps (Part 2 — Real AWS Automation Project)]]></title>
            <link>https://medium.com/@DasunSandeepa/how-i-learned-linux-shell-scripting-for-devops-part-2-real-aws-automation-project-38b86f0935c3?source=rss-becb454da41f------2</link>
            <guid isPermaLink="false">https://medium.com/p/38b86f0935c3</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[shellscripting]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Dasun-Devops]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 15:33:53 GMT</pubDate>
            <atom:updated>2026-04-10T15:33:53.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*jXC-ukX2JyHHPWBlH1YZ-Q.jpeg" /></figure><p>After learning the basics of DevOps and cloud computing in Part 1, I moved into something every DevOps engineer must master:</p><p>👉 <strong>Linux and Shell Scripting</strong></p><p>At first, working with the terminal felt uncomfortable no GUI, just commands.</p><p>But very quickly, I realized something powerful:</p><p>The terminal is not a limitation it’s a superpower.</p><h3>Why Linux Matters in DevOps</h3><p>One of the first things I realized is this:</p><blockquote><strong><em>Most production systems run on Linux.</em></strong></blockquote><p>Whether it’s AWS EC2 instances, containers, or servers in large-scale applications — Linux is everywhere.</p><h3>Key Reasons:</h3><ul><li>Free and open-source</li><li>Highly stable and secure</li><li>Lightweight (no unnecessary GUI)</li><li>Perfect for automation</li></ul><p>In DevOps, we don’t just <em>use</em> systems — we <strong>control and automate them</strong>, and Linux gives us that power.</p><h3>Understanding the Linux System (Simple View)</h3><p>A Linux system can be thought of as 3 main layers:</p><pre>Applications → Shell → Kernel → Hardware</pre><ul><li><strong>Kernel</strong> → Core of OS (manages CPU, memory, processes)</li><li><strong>Shell</strong> → Interface where we run commands</li><li><strong>User space</strong> → Where our applications live</li></ul><p>👉 As DevOps engineers, we mostly interact through the <strong>shell (terminal)</strong>.</p><h3>Getting Comfortable with the Terminal</h3><p>At first, working without a GUI felt strange. But soon I realized:</p><blockquote><em>The terminal is not a limitation — it’s a superpower.</em></blockquote><h3>Essential Commands I Learned</h3><pre>pwd        # Show current directory<br>ls -ltr    # List files with details<br>cd         # Navigate directories<br>mkdir      # Create folder<br>touch      # Create file<br>rm -rf     # Remove files/folders<br>cat        # View file content</pre><p>These became my <strong>daily tools</strong>.</p><h3>Monitoring System Health (Real DevOps Work)</h3><p>One key responsibility of DevOps engineers is <strong>monitoring systems</strong>.</p><h3>Commands I used:</h3><pre>nproc       # CPU cores<br>free -h     # Memory usage<br>df -h       # Disk usage<br>top         # Real-time processes</pre><p>👉 These help answer questions like:</p><ul><li>Is the server overloaded?</li><li>Is memory full?</li><li>Are there too many processes running?</li></ul><h3>Introduction to Shell Scripting</h3><p>Then came a turning point:</p><blockquote><em>Instead of running commands one by one… why not automate them?</em></blockquote><h3>💡 What is Shell Scripting?</h3><p>Shell scripting is simply:</p><blockquote>Writing a sequence of commands in a file and executing them automatically. Instead of repeating tasks manually, we let the system do the work for us.</blockquote><h3>My First Script</h3><p>👉 This was my first real DevOps-style automation project.</p><pre>#!/bin/bash</pre><pre>echo &quot;System Info&quot;<br>df -h<br>free -h<br>nproc</pre><p>Run it using:</p><pre>chmod +x script.sh<br>./script.sh</pre><p>👉 Boom — automation started.</p><p>👉 This simple script gave me a real understanding of how DevOps engineers automate cloud operations in production.</p><h3>Understanding Permissions (Important Lesson)</h3><p>Linux doesn’t allow everything by default (which is good for security).</p><h3>Permission model:</h3><p>ValueMeaning4Read2Write1Execute</p><p>Example:</p><pre>chmod 755 script.sh</pre><p>👉 This was my first lesson in <strong>security + control</strong></p><h3>Writing Better Scripts (Advanced Concepts)</h3><p>As I progressed, I learned how to write <strong>professional scripts</strong>:</p><h3>✔️ Debugging</h3><pre>set -x</pre><h3>✔️ Exit on error</h3><pre>set -e</pre><h3>✔️ Safe pipelines</h3><pre>set -o pipefail</pre><h3>Working with Processes</h3><p>Real-world systems run hundreds of processes.</p><h3>Useful commands:</h3><pre>ps -ef | grep nginx<br>ps -ef | grep app | awk &#39;{print $2}&#39;</pre><p>👉 This allows:</p><ul><li>Filtering processes</li><li>Extracting process IDs</li><li>Managing running applications</li></ul><h3>Power of Pipes (|)</h3><p>This was a game changer.</p><pre>ps -ef | grep java | awk &#39;{print $2}&#39;</pre><p>👉 Output of one command becomes input of another.</p><h3>curl vs wget</h3><p>Two tools I learned:</p><ul><li>curl → Fetch data (used for APIs)</li><li>wget → Download files</li></ul><h3>Loops &amp; Conditions</h3><p>Automation becomes powerful with logic:</p><h3>For Loop:</h3><pre>for i in {1..5}<br>do<br>  echo $i<br>done</pre><h3>If Condition:</h3><pre>if [ $a -lt $b ]; then<br>  echo &quot;a is smaller&quot;<br>fi</pre><h3>Real DevOps Project: AWS Resource Tracker</h3><p>This is where everything came together.</p><h3>Problem:</h3><p>Developers create cloud resources… and forget them.</p><p>👉 Result: <strong>Unnecessary cost</strong></p><h3>Solution:</h3><p>I built a shell script that:</p><ul><li>Lists EC2 instances</li><li>Lists S3 buckets</li><li>Lists Lambda functions</li><li>Lists IAM users</li></ul><h3>Script Example:</h3><pre>#!/bin/bash</pre><pre>echo &quot;AWS Resource Report - $(date)&quot;</pre><pre>aws s3 ls</pre><pre>aws ec2 describe-instances \<br>--query &quot;Reservations[].Instances[].InstanceId&quot; \<br>--output text</pre><p>👉 Output saved to:</p><pre>aws_report.txt</pre><h3>Automation with Cron Jobs</h3><p>Instead of running manually:</p><pre>crontab -e</pre><p>Example:</p><pre>0 18 * * * /home/ubuntu/aws_report.sh</pre><p>👉 Runs daily at 6 PM</p><h3>DevOps Insight: Cost Optimization</h3><p>One thing I clearly understood:</p><blockquote><em>DevOps is not just about building — it’s about optimizing.</em></blockquote><h3>Key points:</h3><ul><li>Running EC2 = cost</li><li>Stopped EC2 = no compute cost</li><li>Storage (EBS, S3) still costs</li></ul><p>👉 So:</p><ul><li>Stop unused instances</li><li>Delete unnecessary resources</li><li>Monitor usage regularly</li></ul><p>At this stage, DevOps started to feel less like a theory and more like real engineering.</p><h3>What I Learned So Far</h3><p>This phase taught me:</p><p>✔️ Linux is the backbone of DevOps<br>✔️ Shell scripting = automation power<br>✔️ Monitoring is critical<br>✔️ AWS CLI connects code with cloud<br>✔️ Automation saves both time and money</p><h3>What’s Next?</h3><p>Now I’m moving into:</p><ul><li>Infrastructure as Code (Terraform)</li><li>Containers (Docker)</li></ul><h3>Final Thoughts</h3><p>This journey made me realize:</p><blockquote><em>DevOps is not about tools — it’s about mindset.</em></blockquote><p>It’s about:</p><ul><li>Automation</li><li>Efficiency</li><li>Reliability</li></ul><p>And I’m just getting started…</p><p>📌 <em>Stay tuned for Part 3…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38b86f0935c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Started DevOps - From Zero to AWS, VMs & Automation (Beginner Guide)]]></title>
            <link>https://medium.com/@DasunSandeepa/how-i-started-devops-from-zero-to-aws-vms-automation-beginner-guide-03ad72e3bb4c?source=rss-becb454da41f------2</link>
            <guid isPermaLink="false">https://medium.com/p/03ad72e3bb4c</guid>
            <category><![CDATA[cloud-computing-aws]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Dasun-Devops]]></dc:creator>
            <pubDate>Sun, 05 Apr 2026 08:23:59 GMT</pubDate>
            <atom:updated>2026-04-05T08:23:59.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LcGn5ZlavXgezJU9D2H4A.png" /></figure><p>dasun-devops</p><p>As a third-year software engineering undergraduate, I recently started exploring the world of DevOps. At first, it felt confusing: too many tools, too many concepts, and no clear direction.</p><p>But over the past few days, I’ve built a <strong>strong foundation</strong>, and in this article, I want to share everything I’ve learned so far in a simple and practical way.</p><p>This is not just theory. This is how DevOps actually works in the real world.</p><h3>What is DevOps (My Understanding)</h3><p>At the beginning, I thought DevOps was just about tools like Docker, Jenkins, or AWS.</p><p>But now I understand:</p><p>👉 <strong>DevOps is not just about tools, it’s a culture and a set of practices that help teams deliver software faster and more reliably.</strong></p><p>It focuses on:</p><ul><li>Speed (fast delivery)</li><li>Quality (testing)</li><li>Automation (reducing manual work)</li><li>Monitoring (system health)</li></ul><h3>Software Development Life Cycle (SDLC)</h3><p>Every software follows a lifecycle:</p><ol><li>Requirement Gathering</li><li>Planning</li><li>Design</li><li>Development</li><li>Testing</li><li>Deployment</li><li>Maintenance</li></ol><h3>Important Realization</h3><p>DevOps is not just one phase.</p><p>👉 It works across the <strong>entire lifecycle</strong>, especially:</p><ul><li>Development</li><li>Testing</li><li>Deployment</li><li>Monitoring</li></ul><h3>How Real Companies Work (Role Flow)</h3><p>One of the most important things I learned is the following:</p><p>👉 <strong>DevOps engineers do NOT directly talk to customers</strong></p><p>Instead, the flow looks like this:</p><pre>Customer<br> ↓<br>Business Analyst<br> ↓<br>Product Manager<br> ↓<br>Product Owner<br> ↓<br>Solution Architect<br> ↓<br>Developers<br> ↓<br>DevOps Engineer (Here!)</pre><h3>My Role as a DevOps Engineer</h3><ul><li>I don’t build features</li><li>I don’t design UI</li></ul><p>👉 I <strong>enable developers to deliver software faster</strong></p><h3>Virtual Machines (VMs)</h3><p>This was a big concept.</p><h3>Problem (Before VMs)</h3><ul><li>One application = one physical server</li><li>Most resources unused</li><li>Expensive and inefficient</li></ul><h3>Solution - Virtual Machines</h3><p>👉 One physical server → multiple virtual servers</p><p>Each VM:</p><ul><li>Has its own OS</li><li>Has its own CPU &amp; RAM</li><li>Works independently</li></ul><h3>Key Concept</h3><ul><li><strong>Physical Server</strong> = Hardware</li><li><strong>Hypervisor</strong> = Manager</li><li><strong>VM</strong> = Virtual server</li></ul><h3>Cloud Computing (AWS &amp; Azure)</h3><p>Instead of buying servers:</p><p>👉 Companies use cloud platforms like AWS</p><h3>Example:</h3><p>I can request a server like this:</p><ul><li>2 CPUs</li><li>4GB RAM</li><li>Region: Mumbai</li></ul><p>👉 And within seconds, I get a virtual machine!</p><h3>Connecting to a Server (SSH)</h3><p>Once I create a VM, I need to access it.</p><h3>What I Need:</h3><ul><li>Public IP address</li><li>Username (ubuntu)</li><li>Private key (.pem file)</li></ul><h3>Command:</h3><pre>ssh -i key.pem ubuntu@&lt;public-ip&gt;</pre><h3>Learning</h3><p>👉 SSH is like a remote control for your server. Instead of sitting in front of the machine, you can control it from anywhere in the world.</p><h3>What is Amazon S3?</h3><p>Another important concept I learned:</p><p>👉 <strong>S3 is a cloud storage service</strong></p><h3>Simple Understanding:</h3><ul><li>Bucket = Folder</li><li>Object = File</li></ul><h3>Example:</h3><pre>Bucket: my-app-data<br>   ├── image.jpg<br>   ├── invoice.pdf</pre><h3>Real Use Cases:</h3><ul><li>Store images</li><li>Store backups</li><li>Store logs</li></ul><h3>Automation in DevOps (GAME CHANGER)</h3><p>This is where things became really interesting</p><h3>Manual Way</h3><ul><li>Click UI</li><li>Create 1 server</li><li>Repeat again and again</li></ul><h3>DevOps Way</h3><p>👉 Use commands or scripts</p><h3>Tools I Learned</h3><h3>1. AWS CLI</h3><p>Command example:</p><pre>aws ec2 run-instances ...</pre><p>👉 Control AWS using terminal</p><h3>2. Boto3 (Python)</h3><pre>ec2.create_instances(...)</pre><p>👉 Control AWS using code</p><h3>3. CloudFormation</h3><pre>Resources:<br>  MyEC2:</pre><p>👉 Define infrastructure using files</p><h3>Important Concept</h3><p>👉 All these tools:</p><p>Talk to AWS APIs<br>Automate infrastructure</p><h3>Infrastructure as Code (IaC)</h3><p>This is a powerful idea:</p><p>👉 Instead of manually creating servers<br>👉 We define infrastructure using code</p><h3>Benefits:</h3><ul><li>Repeatable</li><li>Fast</li><li>Less error</li><li>Scalable</li></ul><h3>My Biggest Takeaways So Far</h3><ol><li>DevOps is not about tools — it’s about mindset</li><li>Automation is EVERYTHING</li><li>Cloud + VMs = modern infrastructure</li><li>SSH is essential to access servers</li><li>S3 is used for storing data, not EC2</li><li>CLI and scripts are powerful</li></ol><h3>What’s Next?</h3><p>This is just the beginning.</p><p>Next, I’ll be learning:</p><ul><li>Docker</li><li>CI/CD pipelines</li><li>Kubernetes</li><li>Terraform</li></ul><h3>Final Thoughts</h3><p>Starting DevOps felt overwhelming at first.</p><p>But step by step, things are becoming clear.</p><p>👉 I’m not just learning tools<br>👉 I’m learning <strong>how real systems work</strong></p><p>If you’re also starting DevOps, keep going.<br>It gets clearer every day</p><p><em>This is Part 1 of my DevOps learning journey. More coming soon…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03ad72e3bb4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>