<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Abdul Rub</title>
    <description>The latest articles on Forem by Abdul Rub (@abdulrub).</description>
    <link>https://forem.com/abdulrub</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F751156%2F02f6f5c6-3f64-4e25-b541-14fb1fc42fa9.jpeg</url>
      <title>Forem: Abdul Rub</title>
      <link>https://forem.com/abdulrub</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/abdulrub"/>
    <language>en</language>
    <item>
      <title>Day 3-4: Shell Scripting – Automating Your DevOps Workflow 🐚⚡</title>
      <dc:creator>Abdul Rub</dc:creator>
      <pubDate>Sun, 06 Apr 2025 13:17:46 +0000</pubDate>
      <link>https://forem.com/abdulrub/day-3-4-shell-scripting-automating-your-devops-workflow-4jn1</link>
      <guid>https://forem.com/abdulrub/day-3-4-shell-scripting-automating-your-devops-workflow-4jn1</guid>
      <description>&lt;p&gt;Welcome back to my &lt;strong&gt;#DevOpsJourney!&lt;/strong&gt; In Day 3-4, we’re diving into one of the most powerful tools in any DevOps toolkit: Shell Scripting. &lt;strong&gt;Automating routine tasks&lt;/strong&gt;, and &lt;strong&gt;streamlining processes&lt;/strong&gt;—these are just a few of the things we can achieve with shell scripts. &lt;/p&gt;

&lt;p&gt;Let's break down the basics and see how you can unlock the power of automation in your workflows.&lt;/p&gt;

&lt;p&gt;Think of shell scripting like a recipe book 📚. By writing the right instructions, you can automate time-consuming tasks and bring efficiency to your operations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🖥️ 1. Getting Started with Shell Scripting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A shell script is just a file with a sequence of terminal commands. When run, the shell executes them in order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create Your First Script:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffs70mpo3dxrhuyglfdca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffs70mpo3dxrhuyglfdca.png" alt="Image description" width="733" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add this line at the top to specify the shell:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fahvnsn3hqqdt6me0soan.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fahvnsn3hqqdt6me0soan.png" alt="Image description" width="733" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add your first command:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flin8soeqmvfnzdoyvo16.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flin8soeqmvfnzdoyvo16.png" alt="Image description" width="698" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Make it executable:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr1wqdhxvab1ga5orqaxp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr1wqdhxvab1ga5orqaxp.png" alt="Image description" width="640" height="63"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fybkperj8dta5j8hgbkw1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fybkperj8dta5j8hgbkw1.png" alt="Image description" width="617" height="53"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Boom! You've just created your first working script 🎉&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚙️ 2. Control Flow &amp;amp; Logic in Shell Scripting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Shell scripts become powerful when you add logic like conditionals and loops.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If-Else Condition:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fey06sly8yih1nrpmxy61.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fey06sly8yih1nrpmxy61.png" alt="Image description" width="486" height="184"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Loop:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7vzhu0o1ujg0vgnjbusa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7vzhu0o1ujg0vgnjbusa.png" alt="Image description" width="481" height="99"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;While Loop:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fohnvqjsuv2gzumh7f9u8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fohnvqjsuv2gzumh7f9u8.png" alt="Image description" width="482" height="140"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📜 3. Advanced Techniques&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once We’ve nailed the basics, start using variables, functions, redirections, and scheduling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variables:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpv2jm1dcoyfh95pnm067.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpv2jm1dcoyfh95pnm067.png" alt="Image description" width="340" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk7rxj29yelvcg18sccm2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk7rxj29yelvcg18sccm2.png" alt="Image description" width="560" height="181"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Redirecting Output:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpka82mstqwnvcfjvemxq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpka82mstqwnvcfjvemxq.png" alt="Image description" width="389" height="44"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Redirecting Errors:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrdrbjfi4gf4lwg3ws34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrdrbjfi4gf4lwg3ws34.png" alt="Image description" width="419" height="41"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cron Job for Scheduling:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Edit crontab:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97e7oazj4qbasr4wifqo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97e7oazj4qbasr4wifqo.png" alt="Image description" width="561" height="42"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example to run a script daily at midnight:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fym6ovifattmgl8koylsx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fym6ovifattmgl8koylsx.png" alt="Image description" width="476" height="42"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔧 4. Handy Shell Commands&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Some useful commands often used in automation:&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;grep *&lt;/em&gt; – Search patterns in files&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feh3u7uehsm9guaddknt5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feh3u7uehsm9guaddknt5.png" alt="Image description" width="371" height="44"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;sed *&lt;/em&gt;– Find and replace in files&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdflw9rtipf0csd7yd6sv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdflw9rtipf0csd7yd6sv.png" alt="Image description" width="429" height="48"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;awk *&lt;/em&gt;– Process text and data&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgk046veugxb8j5rp6u5f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgk046veugxb8j5rp6u5f.png" alt="Image description" width="453" height="37"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;tar – Create backups&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm47uqsewluh4iyyrz8ya.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm47uqsewluh4iyyrz8ya.png" alt="Image description" width="420" height="51"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📈 5. Real-World Use Cases in DevOps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✅ Automated Deployments – Script your deployments for consistency&lt;br&gt;
✅ System Monitoring – Check disk usage, CPU, memory, etc.&lt;br&gt;
✅ Backup Automation – Schedule daily or weekly backups&lt;br&gt;
✅ Log Management – Analyze and filter logs programmatically&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🏁 Wrapping Up&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Shell scripting is a must-have skill for anyone diving into DevOps.&lt;br&gt;
It brings automation, speed, and precision to your daily tasks and long-term projects.&lt;/p&gt;

&lt;p&gt;Start simple. Automate small tasks. Then scale your knowledge to tackle bigger challenges.&lt;/p&gt;

&lt;p&gt;What’s one script you’ve written that saved you tons of time?&lt;br&gt;
Let’s connect and share ideas! 💬&lt;/p&gt;

</description>
      <category>learninginpublic</category>
      <category>devops</category>
      <category>sdetodevops</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Day 2: Linux Basics – Essential Commands (Part 2) 🐧⚡</title>
      <dc:creator>Abdul Rub</dc:creator>
      <pubDate>Wed, 02 Apr 2025 19:37:21 +0000</pubDate>
      <link>https://forem.com/abdulrub/day-2-linux-basics-essential-commands-part-2-ml3</link>
      <guid>https://forem.com/abdulrub/day-2-linux-basics-essential-commands-part-2-ml3</guid>
      <description>&lt;p&gt;Welcome back to my #&lt;strong&gt;DevOpsJourney&lt;/strong&gt;! In Day 1, we covered &lt;strong&gt;system monitoring&lt;/strong&gt;, &lt;strong&gt;networking&lt;/strong&gt;, and &lt;strong&gt;file management&lt;/strong&gt;. Today, we’ll master &lt;strong&gt;process control&lt;/strong&gt;, &lt;strong&gt;text processing&lt;/strong&gt;, and automation tools—the secret sauce of &lt;strong&gt;DevOps&lt;/strong&gt; efficiency!&lt;/p&gt;

&lt;p&gt;Think of these commands like &lt;strong&gt;kitchen gadgets&lt;/strong&gt; 🍳—each saves time and effort, so you can focus on cooking up great infrastructure!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚙️ 4. Process Management – Controlling Running Apps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;16 . kill – &lt;strong&gt;The Process Terminator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Stops misbehaving processes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Force-quitting a frozen app on your phone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0609ooao8f5mkcala5y7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0609ooao8f5mkcala5y7.png" alt="Image description" width="786" height="91"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When a program hangs or consumes too much CPU.&lt;/li&gt;
&lt;li&gt;Pro Tip: Find PIDs with ps aux | grep .&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;17 . killall – &lt;strong&gt;Bulk Terminator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Kills processes by name.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Turning off all lights in a room with one switch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Forviot0bwjunst639p29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Forviot0bwjunst639p29.png" alt="Image description" width="724" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When multiple instances of a service need restarting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;18 . bg &amp;amp; fg – &lt;strong&gt;Multitasking Wizards&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What they do&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;bg resumes a paused job in the &lt;strong&gt;background&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;fg brings it back to the &lt;strong&gt;foreground&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;bg → Minimizing YouTube to work.&lt;/p&gt;

&lt;p&gt;fg → Bringing it back to watch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu6xdrmwq6rpnyq0094r2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu6xdrmwq6rpnyq0094r2.png" alt="Image description" width="733" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;19 . jobs – &lt;strong&gt;Background Task Manager&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Lists background/suspended jobs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Checking your to-do list sticky notes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frbl84tid5av55hvnvdv5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frbl84tid5av55hvnvdv5.png" alt="Image description" width="790" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Managing long-running tasks (e.g., backups).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;📜 5. Text Processing – Data Manipulation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;20 . sed – &lt;strong&gt;The Text Surgeon&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What it does: Finds/replaces text in files or streams.&lt;/p&gt;

&lt;p&gt;Real-life analogy: Find &amp;amp; Replace All in a Word doc.&lt;/p&gt;

&lt;p&gt;When to use:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkisbmq7c186a28ewul8m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkisbmq7c186a28ewul8m.png" alt="Image description" width="800" height="103"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Editing config files in bulk.&lt;/li&gt;
&lt;li&gt;Removing empty lines: sed '/^$/d' file.txt.&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;awk – &lt;strong&gt;The Data Scientist&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Extracts and processes structured data (e.g., logs, CSVs).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Filtering Excel columns for analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb6162u6idvazynprb33f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb6162u6idvazynprb33f.png" alt="Image description" width="786" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parsing server logs.&lt;/li&gt;
&lt;li&gt;Calculating sums: awk '{sum+=$1} END {print sum}' data.txt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;22 . cut – &lt;strong&gt;The Column Cutter&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Extracts specific columns from text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Cutting coupons from a newspaper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5nbdwbvkdbi0alwkrgzx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5nbdwbvkdbi0alwkrgzx.png" alt="Image description" width="800" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Processing CSV/TSV files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;23 . tr – &lt;strong&gt;The Character Translator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Replaces/deletes characters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Converting lowercase to uppercase with a button.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs0nwe8kywypmr4st1wjn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs0nwe8kywypmr4st1wjn.png" alt="Image description" width="627" height="104"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sanitizing inputs (e.g., removing spaces).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;🔗 6. File Linking &amp;amp; Archives&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;24 . ln – &lt;strong&gt;The Shortcut Creator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Creates hard/soft links (like Windows shortcuts).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Hard link: A mirror (same file, two names).&lt;/p&gt;

&lt;p&gt;Soft link: A GPS shortcut (points to original).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3p3huup4ezqtogyvq8c8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3p3huup4ezqtogyvq8c8.png" alt="Image description" width="791" height="100"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Linking config files across directories.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;25 . tar – &lt;strong&gt;The File Packer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Combines files into a tarball (.tar.gz).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Zipping clothes into a suitcase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftojzy42eqgy7w1vh8z65.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftojzy42eqgy7w1vh8z65.png" alt="Image description" width="800" height="115"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating backups.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;26 . zip/unzip – &lt;strong&gt;Cross-Platform Archiver&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Compresses to .zip format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Packing files for email attachments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzj2xixh86d6e7e8lpami.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzj2xixh86d6e7e8lpami.png" alt="Image description" width="775" height="131"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sharing files with Windows users.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Day 1: Linux Basics – The Power of Commands 🐧💻</title>
      <dc:creator>Abdul Rub</dc:creator>
      <pubDate>Wed, 02 Apr 2025 18:43:55 +0000</pubDate>
      <link>https://forem.com/abdulrub/day-1-linux-basics-the-power-of-commands-3hl8</link>
      <guid>https://forem.com/abdulrub/day-1-linux-basics-the-power-of-commands-3hl8</guid>
      <description>&lt;p&gt;Welcome back to my &lt;strong&gt;#DevOpsJourney&lt;/strong&gt;! 🚀 Yesterday, we explored what &lt;strong&gt;DevOps&lt;/strong&gt; is, why &lt;strong&gt;cloud computing&lt;/strong&gt; is a game-changer, and why &lt;strong&gt;Linux&lt;/strong&gt; is the backbone of &lt;strong&gt;DevOps&lt;/strong&gt;. Today, we dive into Linux commands—the essential tools that make Linux a powerhouse for DevOps.&lt;/p&gt;

&lt;p&gt;Think of Linux commands like kitchen tools 🍳—each has a specific purpose, and mastering them lets you cook up amazing automation, troubleshooting, and system management recipes!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📊 1. System Monitoring &amp;amp; Resource Management&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;top – &lt;strong&gt;The Real-Time System Monitor&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Displays CPU, memory, and process stats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Like checking your car’s dashboard while driving (speed, fuel, engine health).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4e627o7nkwx0hjih90z8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4e627o7nkwx0hjih90z8.png" alt="Image description" width="800" height="83"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When your server is slow.&lt;/li&gt;
&lt;li&gt;To find which process is consuming max CPU/RAM.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2 . htop – &lt;strong&gt;Supercharged top&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Colorful, interactive process viewer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Upgrading from a bicycle speedometer to a Tesla’s touchscreen.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv62ucpid2u3jl3ji846v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv62ucpid2u3jl3ji846v.png" alt="Image description" width="800" height="75"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When you need a clearer view of processes.&lt;/li&gt;
&lt;li&gt;To kill processes with F9.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3 . ps – &lt;strong&gt;Process Snapshot&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Lists running processes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Taking a roll call in a classroom.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2mpi1vltudjzfpy4ees3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2mpi1vltudjzfpy4ees3.png" alt="Image description" width="800" height="73"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debugging crashes.&lt;/li&gt;
&lt;li&gt;Checking if a service (e.g., MySQL) is running.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4 . free – &lt;strong&gt;Memory Checker&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Shows RAM and swap usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Checking your wallet (RAM) and emergency cash (swap).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F875coexmmwsas9mus8vm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F875coexmmwsas9mus8vm.png" alt="Image description" width="800" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When apps crash due to "Out of Memory" errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;5 . df – &lt;strong&gt;Disk Space Analyzer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Shows disk usage per partition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Checking storage on your phone ("Is there space for an update?").&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqpjxqt64sq553pp83rd3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqpjxqt64sq553pp83rd3.png" alt="Image description" width="800" height="75"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Before installing large software.&lt;/li&gt;
&lt;li&gt;If your server logs complain about "No space left".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;6 . du – &lt;strong&gt;Directory Space Hog Finder&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Checks file/folder sizes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Finding which app is eating your phone’s storage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo1xfbc0t9z3czpomba5e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo1xfbc0t9z3czpomba5e.png" alt="Image description" width="800" height="69"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Locating large log files to clean up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;7 . uptime – &lt;strong&gt;Server Lifespan Check&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Shows how long the system has been running.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Checking your laptop’s uptime since last reboot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkc4upu02puboz4ou8a4r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkc4upu02puboz4ou8a4r.png" alt="Image description" width="800" height="68"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debugging unexpected reboots.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;🌐 2. Networking – The Digital Highway&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;8 . ping – &lt;strong&gt;Network Connectivity Test&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Checks if a server/website is reachable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Knocking on a neighbor’s door to see if they’re home.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6aj00r5zdjxqwjgeimoh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6aj00r5zdjxqwjgeimoh.png" alt="Image description" width="800" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Testing if the internet works.&lt;/li&gt;
&lt;li&gt;Troubleshooting "Server not found" errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;9 . curl – &lt;strong&gt;API/Data Fetcher&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Transfers data via URLs (APIs, downloads).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Ordering food via an app (GET/POST requests).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fktehmimgos4f1gmeoacy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fktehmimgos4f1gmeoacy.png" alt="Image description" width="800" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Testing REST APIs.&lt;/li&gt;
&lt;li&gt;Downloading files in scripts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;10 . netstat – &lt;strong&gt;Network Statistician (Legacy, use ss instead)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Lists active connections and ports.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Checking who’s calling your phone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyxbj415ct2jf1s4wahkw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyxbj415ct2jf1s4wahkw.png" alt="Image description" width="800" height="84"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11 . ss – &lt;strong&gt;Modern netstat&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Faster socket statistics.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuivp4zbt4mtedh1b7xs7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuivp4zbt4mtedh1b7xs7.png" alt="Image description" width="759" height="99"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debugging "Port already in use" errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;12 . traceroute – &lt;strong&gt;Network Path Tracer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Maps the route packets take to a host.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Tracking your pizza delivery route.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdnanmp9ndr70nzk0xqw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdnanmp9ndr70nzk0xqw.png" alt="Image description" width="800" height="80"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Diagnosing slow network speeds.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;📂 3. File &amp;amp; Directory Management&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;13 . ls – &lt;strong&gt;The Folder Explorer&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Lists files/directories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Opening a drawer to see what’s inside.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F264qnbw66jdx5mu6usow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F264qnbw66jdx5mu6usow.png" alt="Image description" width="800" height="89"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Always. Basic navigation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;14 . grep – &lt;strong&gt;The Text Detective&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Searches for patterns in files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Ctrl+F in a document.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3uta6mgh1xss612ld23i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3uta6mgh1xss612ld23i.png" alt="Image description" width="800" height="93"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parsing logs.&lt;/li&gt;
&lt;li&gt;Filtering command outputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;15 . chmod – &lt;strong&gt;Permission Manager&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does&lt;/strong&gt;: Changes file permissions (read/write/execute).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-life analogy&lt;/strong&gt;: Setting a locker combo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7b1gglrhn81q0nu57xq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd7b1gglrhn81q0nu57xq.png" alt="Image description" width="792" height="102"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When a script won’t run due to "Permission denied".&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>learninginpublic</category>
      <category>devops</category>
      <category>sdetodevops</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Day 0: Learning DevOps – The Journey Begins 🌱</title>
      <dc:creator>Abdul Rub</dc:creator>
      <pubDate>Tue, 01 Apr 2025 12:10:18 +0000</pubDate>
      <link>https://forem.com/abdulrub/day-0-learning-devops-the-journey-begins-4f99</link>
      <guid>https://forem.com/abdulrub/day-0-learning-devops-the-journey-begins-4f99</guid>
      <description>&lt;p&gt;&lt;strong&gt;It all started with a simple question: What is DevOps?&lt;/strong&gt;&lt;br&gt;
Imagine you're planning a road trip. You’ve got the perfect destination in mind, the best route mapped out, but there’s one problem—different teams are handling the map, the car, the fuel, and the itinerary. As you drive, everyone’s working in silos, and communication is choppy. The trip could be delayed, rerouted, or worse—cause frustration.&lt;/p&gt;

&lt;p&gt;Now, picture DevOps as the solution to this problem. Instead of separate teams working in isolation, DevOps brings them together. It’s the bridge between the development team 🧑‍💻 (the ones who build the road) and the operations team 🛠️ (the ones who ensure the road is safe and ready to use). DevOps allows everyone to work as one cohesive unit, with the ultimate goal of making the journey smooth and continuous.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is DevOps? 🤔&lt;/strong&gt;&lt;br&gt;
DevOps is a combination of development (Dev) and operations (Ops), aiming to shorten the software development lifecycle. It emphasizes collaboration, automation, continuous integration, and feedback. Think of it as a symbiotic relationship between the builders (developers) and maintainers (operations) of a product. Instead of working in isolation, both teams now collaborate, continuously integrate, and deploy code, all while ensuring that the system is stable and scalable.&lt;/p&gt;

&lt;p&gt;In real life, think of it as the assembly line in a car factory 🚗. Developers build the car’s parts (features), and operations handle the assembly, testing, and delivery (deployment). They work in tandem so the car gets built and reaches the customer faster and without delays.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The DevOps Mindset 🧠💡&lt;/strong&gt;&lt;br&gt;
So, why isn’t the DevOps journey as simple as it sounds? Well, it’s not just about tools and processes; it’s about mindset. In DevOps, the mindset is about seeing the bigger picture, where collaboration, trust, and shared responsibility are key. It’s not just a “I code, you deploy” world anymore. It’s about fostering a culture where both development and operations teams are equally invested in the product’s success.&lt;/p&gt;

&lt;p&gt;It’s like baking a cake 🎂. The developer might make the batter (code), but the operations team handles the oven and decorations (deploying and maintaining the system). Both teams need to communicate well, adjust the temperature (optimize processes), and share feedback to create the perfect cake (working software).&lt;/p&gt;

&lt;p&gt;A DevOps mindset encourages constant learning and improvement. You're always looking at what went well and how you can make the process faster, better, and smoother. It's like refining your recipe after every bake to make the next one even better.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Cloud? ☁️&lt;/strong&gt;&lt;br&gt;
Before we dive into why cloud is a game-changer for DevOps, let's first understand what it is. The cloud is a vast network of servers that allows us to store and access data, host applications, and run various services over the internet 🌍. Instead of relying on physical servers (which take up space and are expensive to maintain), we rent virtual servers and services hosted by companies like Amazon (AWS), Microsoft (Azure), and Google (Google Cloud). The cloud is like renting a room in a hotel 🏨 instead of owning a house. You only pay for what you use, and if you need more space, you can easily upgrade.&lt;/p&gt;

&lt;p&gt;For DevOps, cloud platforms provide the flexibility to spin up environments and scale applications on-demand. It makes setting up, deploying, and testing applications faster. No need for bulky hardware setups or worrying about infrastructure—it's all taken care of in the cloud.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is Cloud Better? 🚀&lt;/strong&gt;&lt;br&gt;
Let’s consider this with a real-life analogy. Imagine trying to host a dinner party at home 🏠. You need to prepare the food, set up tables, and manage everything yourself. If 10 guests show up, you're okay. But what if 50 guests suddenly arrive? That’s a lot of extra preparation!&lt;/p&gt;

&lt;p&gt;Now, what if you could simply call a caterer 🍴 who already has all the food, tables, and seating arrangements ready? And if more guests arrive, they can just bring in more food and seating. The cloud is like that caterer. It provides you with scalable infrastructure, resources, and services without the hassle of managing everything on your own. Whether you need a little or a lot, cloud services can scale up or down to meet your needs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linux: The Powerhouse Behind DevOps 🐧💪&lt;/strong&gt;&lt;br&gt;
Now, let’s talk about Linux. As you embark on your DevOps journey, you’ll soon realize that Linux is the operating system that drives many of the tools and applications in the DevOps pipeline. Why? Because Linux is open-source, lightweight, stable, and secure—exactly what DevOps needs.&lt;/p&gt;

&lt;p&gt;Think of Linux as a Army knife 🔪—compact, versatile, and reliable. You can use it for a variety of tasks, from running servers to hosting applications, automating tasks, or managing databases. It’s like the foundation of a house 🏡—strong, reliable, and built to last.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Linux is Better for DevOps 🏅&lt;/strong&gt;&lt;br&gt;
Linux is the preferred operating system for DevOps for several reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Customization&lt;/strong&gt; 🛠️: Linux allows you to customize the system according to your needs. It’s like tailoring a suit to fit you perfectly. You can install only the necessary software, keeping it lean and efficient.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Open-Source Community&lt;/strong&gt; 🌍: Since Linux is open-source, there’s a massive community of developers constantly improving it. If you run into an issue, chances are someone else has already solved it. It’s like having an army of helpers always available to lend a hand.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt; 🔒: Linux has a reputation for being secure. With regular patches and updates, it’s less prone to viruses and attacks. Imagine a well-guarded castle with tight security where only authorized people are allowed in.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Compatibility&lt;/strong&gt; 🖥️: Most of the tools used in DevOps (like Docker, Kubernetes, and Jenkins) were either built for Linux or work better on Linux. It’s like buying a car that’s built to run on premium fuel—it just works better.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Stability&lt;/strong&gt; ⚙️: Linux servers are known for running for years without crashing or needing a restart. It’s like owning a reliable old car that keeps going strong even after many years of use.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The Road Ahead 🌄&lt;/strong&gt;&lt;br&gt;
So, this is where we begin our DevOps journey. It’s like setting out on an adventure 🚀. We've learned about what DevOps is, the mindset behind it, why cloud computing is the key to flexibility, and why Linux is the operating system of choice for many DevOps professionals.&lt;/p&gt;

&lt;p&gt;Remember, DevOps isn’t just a set of tools or a process—it's a culture, a mindset, and a way of continuously improving. As we dive deeper into DevOps, we'll learn more, experiment with new tools, and build processes that will help us deploy software faster and more efficiently.&lt;/p&gt;

</description>
      <category>learninginpublic</category>
      <category>devops</category>
      <category>sdetodevops</category>
      <category>cloud</category>
    </item>
  </channel>
</rss>
