<?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: Sana Muhammad Sadiq</title>
    <description>The latest articles on Forem by Sana Muhammad Sadiq (@sanasadiq).</description>
    <link>https://forem.com/sanasadiq</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%2F3047384%2F7acd2fba-d6d2-4c9e-afbe-1a8c951e6dd0.png</url>
      <title>Forem: Sana Muhammad Sadiq</title>
      <link>https://forem.com/sanasadiq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sanasadiq"/>
    <language>en</language>
    <item>
      <title>Linux Myths vs Reality: What Beginners Should Know</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:06:14 +0000</pubDate>
      <link>https://forem.com/sanasadiq/linux-myths-vs-reality-what-beginners-should-know-191c</link>
      <guid>https://forem.com/sanasadiq/linux-myths-vs-reality-what-beginners-should-know-191c</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt; in preparation for the &lt;em&gt;&lt;strong&gt;RHCSA exam&lt;/strong&gt;&lt;/em&gt;, today marks a milestone — the final day. And what better way to wrap up than by clearing the fog surrounding Linux itself?&lt;/p&gt;

&lt;p&gt;Linux is often wrapped in layers of myth, hearsay and outdated assumptions — scaring off beginners and making even seasoned IT professionals second-guess exploring it deeper. Today, we’re busting the biggest myths and laying out the realities with clear explanations, practical examples, industry insights and real-time scenarios. Let’s get comfortable with the truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Myth 1 Linux is Only for Programmers and Hackers&lt;/li&gt;
&lt;li&gt;Myth 2 Linux Has No Good Applications&lt;/li&gt;
&lt;li&gt;Myth 3 You Must Know Terminal Commands to Use Linux&lt;/li&gt;
&lt;li&gt;Myth 4 Linux is Hard to Install and Configure&lt;/li&gt;
&lt;li&gt;Myth 5 Linux is Not Suitable for Work or Enterprise&lt;/li&gt;
&lt;li&gt;Myth 6: You Cannot Play Games on Linux&lt;/li&gt;
&lt;li&gt;Recommendations&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;li&gt;Closing Thoughts Why This Matters&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  👨‍💻 Myth 1 Linux is Only for Programmers and Hackers
&lt;/h2&gt;

&lt;h4&gt;
  
  
  💡 &lt;em&gt;Reality:&lt;/em&gt; Linux is for &lt;em&gt;everyone&lt;/em&gt; — from writers to IT administrators.
&lt;/h4&gt;

&lt;p&gt;Linux has matured dramatically over the years. Today, beginner-friendly distributions like &lt;strong&gt;Ubuntu&lt;/strong&gt;, &lt;strong&gt;Linux Mint&lt;/strong&gt; and &lt;strong&gt;Fedora Workstation&lt;/strong&gt; offer intuitive graphical interfaces that rival Windows and macOS.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; My non-tech cousin (a content writer) — switched to Ubuntu for its speed and privacy. She uses LibreOffice, Firefox and GIMP daily without touching the terminal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;✅ &lt;strong&gt;Tip:&lt;/strong&gt; Start with "Ubuntu" or "Linux Mint" if you’re a complete beginner. You’ll feel right at home with familiar menus and app stores.&lt;/p&gt;

&lt;h2&gt;
  
  
  💻 Myth 2 Linux Has No Good Applications
&lt;/h2&gt;

&lt;h4&gt;
  
  
  💡 &lt;em&gt;Reality:&lt;/em&gt; Linux has thousands of powerful apps; often free and open-source.
&lt;/h4&gt;

&lt;p&gt;Whether you’re designing, coding, writing or just browsing, Linux covers it all.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LibreOffice&lt;/strong&gt; → MS Office alternative&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GIMP&lt;/strong&gt; → Photoshop alternative&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VLC Media Player&lt;/strong&gt; → Media player&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VS Code&lt;/strong&gt; → Coding IDE&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kdenlive&lt;/strong&gt; → Video editing&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Industrial Insight:&lt;/strong&gt; Major corporations like &lt;strong&gt;Google&lt;/strong&gt;, &lt;strong&gt;Netflix&lt;/strong&gt; and &lt;strong&gt;NASA&lt;/strong&gt; use Linux-powered systems daily — often with customized tools and applications.&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;Tip:&lt;/strong&gt; Explore "Flathub" or your distribution’s app store to discover apps instantly.&lt;/p&gt;

&lt;h2&gt;
  
  
  📟 Myth 3 You Must Know Terminal Commands to Use Linux
&lt;/h2&gt;

&lt;h4&gt;
  
  
  💡 &lt;em&gt;Reality:&lt;/em&gt; You can get by without the terminal — but learning a few commands boosts confidence.
&lt;/h4&gt;

&lt;p&gt;Modern Linux distros provide GUI-based tools for almost everything: installing apps, managing files, adjusting settings.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Real-Time Scenario:&lt;/strong&gt;&lt;br&gt;
Installing VLC Media Player:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GUI:&lt;/strong&gt; Open Software Center → Search "VLC" → Click Install&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terminal (optional):&lt;/strong&gt; &lt;code&gt;sudo apt install vlc&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;✅ &lt;strong&gt;Tip:&lt;/strong&gt; Gradually learn essentials like &lt;code&gt;ls&lt;/code&gt;, &lt;code&gt;cd&lt;/code&gt;, &lt;code&gt;cp&lt;/code&gt; and &lt;code&gt;rm&lt;/code&gt; — they’ll make you feel empowered, not overwhelmed.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Myth 4 Linux is Hard to Install and Configure
&lt;/h2&gt;

&lt;h4&gt;
  
  
  💡 &lt;em&gt;Reality:&lt;/em&gt; Most distros today have &lt;em&gt;foolproof installers&lt;/em&gt;.
&lt;/h4&gt;

&lt;p&gt;Ubuntu’s installer takes &lt;strong&gt;15–20 minutes&lt;/strong&gt;, with guided, step-by-step instructions and it is often faster than Windows installations.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Industrial Insight:&lt;/strong&gt; System administrators globally spin up &lt;strong&gt;Linux servers&lt;/strong&gt; in minutes using automated tools like &lt;strong&gt;Ansible&lt;/strong&gt;, &lt;strong&gt;Terraform&lt;/strong&gt; and &lt;strong&gt;cloud-init&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;✅ &lt;strong&gt;Tip:&lt;/strong&gt; Try Linux first using a &lt;strong&gt;Live USB&lt;/strong&gt; or &lt;strong&gt;Virtual Machine&lt;/strong&gt; — risk-free, no changes to your system.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌐 Myth 5 Linux is Not Suitable for Work or Enterprise
&lt;/h2&gt;

&lt;h4&gt;
  
  
  💡 &lt;em&gt;Reality:&lt;/em&gt; Linux powers most of the internet and Fortune 500 companies.
&lt;/h4&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Real-Time Scenario:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Amazon Web Services (AWS)&lt;/strong&gt; — runs on customized Linux AMIs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Android OS&lt;/strong&gt; — based on the Linux kernel&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stock Exchanges&lt;/strong&gt; — New York Stock Exchange (NYSE) uses Linux servers for high-frequency trading&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;✅ &lt;strong&gt;Tip:&lt;/strong&gt; Learning Linux (even basic sysadmin skills) massively boosts career prospects in &lt;strong&gt;cloud computing&lt;/strong&gt;, &lt;strong&gt;DevOps&lt;/strong&gt;, &lt;strong&gt;data science&lt;/strong&gt;, and &lt;strong&gt;cybersecurity&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎮 Myth 6 You Cannot Play Games on Linux
&lt;/h2&gt;

&lt;h4&gt;
  
  
  💡 &lt;em&gt;Reality:&lt;/em&gt; Gaming on Linux is exploding.
&lt;/h4&gt;

&lt;p&gt;With &lt;strong&gt;Proton&lt;/strong&gt; (by Valve/Steam), thousands of Windows games run smoothly on Linux.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Examples:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Counter-Strike: Global Offensive (CS:GO)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Witcher 3&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rocket League&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;✅ &lt;strong&gt;Tip:&lt;/strong&gt; Install &lt;strong&gt;Steam for Linux&lt;/strong&gt; and enable Proton — you’ll be amazed.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛡️ Recommendations
&lt;/h2&gt;

&lt;p&gt;If You’re Still Hesitant:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start small:&lt;/strong&gt; Dual-boot Linux alongside Windows or run it in VirtualBox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Join a community:&lt;/strong&gt; Linux has vibrant support forums, Reddit threads and Discord servers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Practice real-world tasks:&lt;/strong&gt; Like installing apps, setting up Wi-Fi printers and browsing the web.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consider certifications:&lt;/strong&gt; &lt;strong&gt;RHCSA&lt;/strong&gt;, &lt;strong&gt;LFCS&lt;/strong&gt; or &lt;strong&gt;Linux+&lt;/strong&gt; can validate your growing skills.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🧠 Quick Summary
&lt;/h2&gt;

&lt;p&gt;The Truth About Linux&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Myth&lt;/th&gt;
&lt;th&gt;Reality&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Linux is just for hackers&lt;/td&gt;
&lt;td&gt;It’s for &lt;em&gt;everyone&lt;/em&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No good apps&lt;/td&gt;
&lt;td&gt;Thousands of powerful apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Terminal is mandatory&lt;/td&gt;
&lt;td&gt;Optional, but useful&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hard to install&lt;/td&gt;
&lt;td&gt;Easier than ever&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Not for work&lt;/td&gt;
&lt;td&gt;Powers global enterprises&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No games&lt;/td&gt;
&lt;td&gt;Gaming ecosystem thriving&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  👩🏻‍💻 Closing Thoughts Why This Matters
&lt;/h2&gt;

&lt;p&gt;Over the last 30 days of my &lt;strong&gt;Linux challenge&lt;/strong&gt;, I realized Linux is less about commands and more about &lt;strong&gt;mindset&lt;/strong&gt;:&lt;br&gt;
Curiosity, community, and continuous learning.&lt;/p&gt;

&lt;p&gt;Whether you're a non-tech professional, IT aspirant or business owner — knowing the truth about Linux can save money, boost security and open career doors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don’t let myths limit you. Explore with confidence.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Here’s to open-source, empowerment and lifelong learning. See you in the shell!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;— &lt;em&gt;Sana&lt;/em&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%2Fuutchoyuihumczebmjc5.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%2Fuutchoyuihumczebmjc5.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Linux for Non-Techies: A Simple Guide to Getting Comfortable</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:05:02 +0000</pubDate>
      <link>https://forem.com/sanasadiq/linux-for-non-techies-a-simple-guide-to-getting-comfortable-1jfb</link>
      <guid>https://forem.com/sanasadiq/linux-for-non-techies-a-simple-guide-to-getting-comfortable-1jfb</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;RHCSA&lt;/strong&gt;&lt;/em&gt; journey with the &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt;. Today, I want to step back from the deeply technical commands and configurations and instead speak directly to the &lt;strong&gt;non-techies&lt;/strong&gt; — the project managers, analysts, entrepreneurs, marketers and curious learners who’ve always heard about Linux but found it intimidating or irrelevant to their daily workflows.&lt;/p&gt;

&lt;p&gt;Spoiler alert: Linux isn’t just for system admins and developers anymore.&lt;br&gt;
It’s a &lt;strong&gt;powerful, stable and surprisingly user-friendly&lt;/strong&gt; environment that can make you more productive, resourceful and confident — no matter your job title.&lt;/p&gt;

&lt;p&gt;In this guide, I’ll break it all down &lt;em&gt;simply&lt;/em&gt; with &lt;strong&gt;examples, helpful tips, real-world cases and industry insights&lt;/strong&gt; so you’ll walk away saying:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“I can use Linux, and I’m comfortable doing it.”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Why Non Techies Should Care About Linux&lt;/li&gt;
&lt;li&gt;Linux Basics Made Easy With Examples&lt;/li&gt;
&lt;li&gt;Helpful Tips to Get Comfortable&lt;/li&gt;
&lt;li&gt;Industrial Insights and Real Time Scenarios&lt;/li&gt;
&lt;li&gt;Recommendations for Non Techies&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🌍 Why Non Techies Should Care About Linux
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“You don't have to be a developer to harness the power of Linux — you just need to know where to start.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fact&lt;/strong&gt;: 96.3% of the world’s top 1 million web servers run Linux (source: W3Techs).&lt;/p&gt;

&lt;p&gt;Even if you’re not managing servers, understanding Linux gives you an edge in &lt;strong&gt;modern workplaces&lt;/strong&gt; where cloud platforms, containers, automation, and data pipelines are increasingly Linux-based.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Real-World Case Study
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;A marketing manager&lt;/strong&gt; at a SaaS company started using Linux (via a virtual machine) to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Access large CSV datasets faster.&lt;/li&gt;
&lt;li&gt;Run simple scripts to clean mailing lists.&lt;/li&gt;
&lt;li&gt;Automate reports from their CRM tool using basic Bash scripts.
— &lt;em&gt;Result&lt;/em&gt;: Less dependency on overbooked IT teams and quicker time-to-insight.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🛠️ Linux Basics Made Easy With Examples
&lt;/h2&gt;

&lt;p&gt;Let’s take intimidating Linux concepts and translate them into &lt;strong&gt;everyday language&lt;/strong&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Linux Concept&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Simple Explanation&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Terminal&lt;/td&gt;
&lt;td&gt;A command box, like a Google search bar — but for your computer.&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ls&lt;/code&gt; = Show me what files are here&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Home Directory&lt;/td&gt;
&lt;td&gt;Your personal “Documents” folder.&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;cd ~&lt;/code&gt; takes you there&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Package Manager&lt;/td&gt;
&lt;td&gt;App Store for Linux software.&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;sudo apt install firefox&lt;/code&gt; installs Firefox&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permissions&lt;/td&gt;
&lt;td&gt;Who can see/edit the file?&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;chmod 755 file.txt&lt;/code&gt; sets view/edit rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shell Script&lt;/td&gt;
&lt;td&gt;A to-do list for the computer to follow automatically.&lt;/td&gt;
&lt;td&gt;Automate “send email + backup files”&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  💡 Helpful Tips to Get Comfortable
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Don’t install Linux on your main machine (yet)
&lt;/h3&gt;

&lt;p&gt;Start with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;VirtualBox&lt;/strong&gt; + &lt;strong&gt;Ubuntu ISO&lt;/strong&gt; → Run Linux inside Windows/Mac.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WSL (Windows Subsystem for Linux)&lt;/strong&gt; → Best for Windows users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live USB&lt;/strong&gt; → Try Linux without installing (plug-and-play).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Stick to Graphical Interfaces first
&lt;/h3&gt;

&lt;p&gt;Modern Linux desktops (like &lt;strong&gt;Ubuntu&lt;/strong&gt;, &lt;strong&gt;Fedora&lt;/strong&gt;, &lt;strong&gt;Zorin OS&lt;/strong&gt;) look just like Windows or Mac.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip&lt;/strong&gt;: You don’t &lt;em&gt;have&lt;/em&gt; to use the terminal immediately. Click around first!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. Google every error unapologetically
&lt;/h3&gt;

&lt;p&gt;99% of Linux problems have been solved (and documented).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“Copy → Paste error → Google → Solution”&lt;/em&gt; — That’s the real Linux workflow.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🏢 Industrial Insights and Real Time Scenarios
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Industry&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Linux Use Case&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;How Non-Techies Benefit&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Finance&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Batch process reports, automate reconciliations&lt;/td&gt;
&lt;td&gt;Faster reporting without IT bottlenecks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Healthcare&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Secure data storage, encrypted file handling&lt;/td&gt;
&lt;td&gt;Improved patient data privacy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;E-commerce&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Server maintenance, database queries&lt;/td&gt;
&lt;td&gt;Better communication with dev/ops teams&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Content Creation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Open-source creative tools (GIMP, Inkscape)&lt;/td&gt;
&lt;td&gt;No need for costly licenses&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;:&lt;br&gt;
A &lt;strong&gt;Product Manager&lt;/strong&gt; who understands basic Linux commands can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SSH into cloud servers to check logs.&lt;/li&gt;
&lt;li&gt;Pull real-time sales data from SQL databases.&lt;/li&gt;
&lt;li&gt;Communicate with DevOps teams more fluently.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;In 2025, Linux literacy = career agility.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  ⭐ Recommendations for Non Techies
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Start with Ubuntu&lt;/strong&gt; → Easiest Linux flavor, most user-friendly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bookmark These Resources&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://linuxjourney.com/" rel="noopener noreferrer"&gt;Linux Journey&lt;/a&gt; (Beginner-friendly)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://explainshell.com/" rel="noopener noreferrer"&gt;Explainshell.com&lt;/a&gt; (Explains any Linux command)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://overthewire.org/wargames/bandit/" rel="noopener noreferrer"&gt;OverTheWire: Bandit&lt;/a&gt; (Fun Linux game)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Practice 5 Commands Daily&lt;/strong&gt; → &lt;code&gt;ls&lt;/code&gt;, &lt;code&gt;cd&lt;/code&gt;, &lt;code&gt;cat&lt;/code&gt;, &lt;code&gt;nano&lt;/code&gt;, &lt;code&gt;grep&lt;/code&gt;&lt;br&gt;
   (That’s it. These cover 80% of basic needs!)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shadow a Colleague&lt;/strong&gt; → Ask a DevOps or IT teammate to show you &lt;em&gt;one real task&lt;/em&gt; they do on Linux.&lt;/p&gt;

&lt;h2&gt;
  
  
  📝 Quick Summary
&lt;/h2&gt;

&lt;p&gt;Linux isn’t just a playground for tech enthusiasts anymore — it’s an &lt;strong&gt;empowerment tool&lt;/strong&gt;.&lt;br&gt;
For non-techies, becoming “Linux comfortable” doesn’t mean becoming a sysadmin.&lt;br&gt;
It means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Speaking the language of modern IT and cloud.&lt;/li&gt;
&lt;li&gt;Automating tedious tasks.&lt;/li&gt;
&lt;li&gt;Unlocking tools that give you independence and speed.&lt;/li&gt;
&lt;/ul&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%2Fid57wrabkzi1mj7gff0l.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%2Fid57wrabkzi1mj7gff0l.png" alt="Image description" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Configuring and Securing SSH Access in Linux</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:03:02 +0000</pubDate>
      <link>https://forem.com/sanasadiq/configuring-and-securing-ssh-access-in-linux-3bho</link>
      <guid>https://forem.com/sanasadiq/configuring-and-securing-ssh-access-in-linux-3bho</guid>
      <description>&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;RHCSA&lt;/strong&gt;&lt;/em&gt; journey with the &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt;. Today’s topic is all about something that powers remote access and server administration in the Linux world &lt;strong&gt;SSH (Secure Shell)&lt;/strong&gt;. If you’ve ever connected to a remote machine securely, you’ve likely used SSH already. But configuring and securing it properly? That’s where many stop short and that’s exactly what we’ll tackle today.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔍 What is SSH?
&lt;/h3&gt;

&lt;p&gt;SSH (Secure Shell) is a protocol used to securely log into remote systems over a network. It encrypts all the traffic, preventing eavesdropping, connection hijacking and other attacks.&lt;/p&gt;

&lt;h3&gt;
  
  
  🛠️ Basic SSH Command
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh username@remote_host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;username&lt;/code&gt;: user on the remote machine&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;remote_host&lt;/code&gt;: IP or hostname of the server&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📦 Installing SSH
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;On Ubuntu/Debian:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;openssh-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;On RHEL/CentOS:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;dnf &lt;span class="nb"&gt;install &lt;/span&gt;openssh-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🔐 Start &amp;amp; Enable SSH Service
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl start sshd
&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl &lt;span class="nb"&gt;enable &lt;/span&gt;sshd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🔐 Securing SSH Access (Best Practices)
&lt;/h3&gt;

&lt;p&gt;✅ &lt;strong&gt;Change the default port&lt;/strong&gt;&lt;br&gt;
Edit &lt;code&gt;/etc/ssh/sshd_config&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Port 2222
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ &lt;strong&gt;Disable root login&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;PermitRootLogin no
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ &lt;strong&gt;Use SSH key authentication&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen
ssh-copy-id user@remote_host
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ &lt;strong&gt;Limit users who can login&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;AllowUsers sana ali devops
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ &lt;strong&gt;Use Fail2Ban or firewall rules&lt;/strong&gt; to block brute-force attempts.&lt;/p&gt;

&lt;h3&gt;
  
  
  📁 Real-Time Use Cases
&lt;/h3&gt;

&lt;p&gt;🔹 DevOps teams use SSH keys for secure deployments.&lt;br&gt;
🔹 Sysadmins monitor cloud instances without exposing passwords.&lt;br&gt;
🔹 Developers connect to staging servers to test builds securely.&lt;/p&gt;

&lt;h3&gt;
  
  
  💡 Pro Tips
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Always &lt;strong&gt;backup&lt;/strong&gt; your &lt;code&gt;~/.ssh&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;ssh -v&lt;/code&gt; to troubleshoot SSH issues.&lt;/li&gt;
&lt;li&gt;Audit &lt;code&gt;/var/log/auth.log&lt;/code&gt; for unauthorized attempts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🧠 Quick Summary
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Command / Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Connect to SSH&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ssh user@ip&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generate SSH key&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ssh-keygen&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Copy key to remote&lt;/td&gt;
&lt;td&gt;&lt;code&gt;ssh-copy-id user@host&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change default port&lt;/td&gt;
&lt;td&gt;Edit &lt;code&gt;/etc/ssh/sshd_config&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Restart service&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sudo systemctl restart sshd&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Disable root login&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PermitRootLogin no&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;SSH is your gateway to the Linux world but with great power comes great responsibility. By taking the time to secure your SSH access, you’re not just connecting remotely; you’re building a safer system.&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%2Fz2pwqgfwwalcklya3dyd.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%2Fz2pwqgfwwalcklya3dyd.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Best Open Source Tools to Use on Your Linux Journey</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:02:16 +0000</pubDate>
      <link>https://forem.com/sanasadiq/best-open-source-tools-to-use-on-your-linux-journey-22da</link>
      <guid>https://forem.com/sanasadiq/best-open-source-tools-to-use-on-your-linux-journey-22da</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;RHCSA&lt;/strong&gt;&lt;/em&gt; journey with the &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt;, today’s focus is on the powerful &lt;strong&gt;open-source tools&lt;/strong&gt; that make the Linux experience smoother, smarter and way more productive.&lt;/p&gt;

&lt;p&gt;Whether you're writing code, managing systems, working with data or just navigating Linux as a learner &lt;strong&gt;the right tools matter&lt;/strong&gt;. And in the world of Linux, &lt;strong&gt;open-source tools&lt;/strong&gt; aren’t just alternatives, they’re often the industry standard.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Top Open Source Tools Every Linux User Should Know&lt;/li&gt;
&lt;li&gt;Real World Use Case&lt;/li&gt;
&lt;li&gt;Recommendation&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  🛠️ &lt;strong&gt;Top Open Source Tools Every Linux User Should Know&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Let’s explore the most commonly used and recommended ones, with practical uses:&lt;/p&gt;

&lt;h4&gt;
  
  
  🔍 1. &lt;strong&gt;htop&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What it does:&lt;/strong&gt; A user-friendly process viewer (like &lt;code&gt;top&lt;/code&gt;, but better).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Gives real-time insights into system resources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Try it:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  &lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;htop
  htop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  📝 2. &lt;strong&gt;vim / nano&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What they do:&lt;/strong&gt; Terminal-based text editors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tip:&lt;/strong&gt; Use &lt;code&gt;nano&lt;/code&gt; for simplicity, &lt;code&gt;vim&lt;/code&gt; for power once you’re confident.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌐 3. &lt;strong&gt;curl &amp;amp; wget&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use Case:&lt;/strong&gt; Download files, APIs, webpages from the command line.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  curl https://example.com
  wget https://example.com/file.zip
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  🧱 4. &lt;strong&gt;tmux&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What it is:&lt;/strong&gt; Terminal multiplexer—run multiple sessions in one terminal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scenario:&lt;/strong&gt; Keeping a process running even when SSH is lost.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  📦 5. &lt;strong&gt;Git&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Use Case:&lt;/strong&gt; Version control (and collaboration via GitHub/GitLab).
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  git clone https://github.com/user/repo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  💡 6. &lt;strong&gt;ncdu&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What it is:&lt;/strong&gt; Visual disk usage analyzer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Why:&lt;/strong&gt; Much clearer than &lt;code&gt;du -sh *&lt;/code&gt; when exploring space-hogs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 7. &lt;strong&gt;nmap&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Purpose:&lt;/strong&gt; Network scanning and security auditing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Used in:&lt;/strong&gt; System/network administration and cybersecurity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🧪 8. &lt;strong&gt;bash-it / oh-my-zsh&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why:&lt;/strong&gt; Supercharge your terminal with themes, aliases and autocompletions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  📁 9. &lt;strong&gt;rsync&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Why it matters:&lt;/strong&gt; Efficient file syncing, backup, and migration.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🧰 10. &lt;strong&gt;GParted&lt;/strong&gt;
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GUI-based partition editor.&lt;/strong&gt;
Great for resizing, formatting or repairing partitions without command-line stress.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔁 &lt;strong&gt;Real World Use Case&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Let’s say you’re a junior sysadmin troubleshooting disk issues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;ncdu&lt;/code&gt; to find bloated directories,&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;rsync&lt;/code&gt; to back them up to another server,&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tmux&lt;/code&gt; to run these long tasks in multiple sessions without disconnecting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;That’s the real Linux power—open source helping you work smarter, not harder.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  🧠 &lt;strong&gt;Recommendation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Don’t try to master everything at once. Start with what solves your immediate need. Then keep adding as your comfort grows.&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ &lt;strong&gt;Quick Summary&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;htop&lt;/td&gt;
&lt;td&gt;System monitoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;vim/nano&lt;/td&gt;
&lt;td&gt;File editing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;curl/wget&lt;/td&gt;
&lt;td&gt;Downloading data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tmux&lt;/td&gt;
&lt;td&gt;Terminal multitasking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;git&lt;/td&gt;
&lt;td&gt;Version control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ncdu&lt;/td&gt;
&lt;td&gt;Disk space exploration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;nmap&lt;/td&gt;
&lt;td&gt;Network diagnostics/security&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bash-it&lt;/td&gt;
&lt;td&gt;Enhanced CLI experience&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rsync&lt;/td&gt;
&lt;td&gt;File sync and backup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GParted&lt;/td&gt;
&lt;td&gt;Partition management (GUI)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&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%2Fte0r9l6jyk1piz196c9j.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%2Fte0r9l6jyk1piz196c9j.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>File Searching Like a Pro: find, locate and which</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:01:11 +0000</pubDate>
      <link>https://forem.com/sanasadiq/file-searching-like-a-pro-find-locate-and-which-34ld</link>
      <guid>https://forem.com/sanasadiq/file-searching-like-a-pro-find-locate-and-which-34ld</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;RHCSA&lt;/strong&gt;&lt;/em&gt; journey with the &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt;. Today’s focus is one of those everyday essentials that saves time, boosts efficiency and solves the age-old question: &lt;em&gt;"Where did that file go?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Let’s talk about &lt;strong&gt;file searching&lt;/strong&gt; in Linux using the powerful trio: &lt;code&gt;find&lt;/code&gt;, &lt;code&gt;locate&lt;/code&gt; and &lt;code&gt;which&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What Are These Commands&lt;/li&gt;
&lt;li&gt;Real Life Use Cases&lt;/li&gt;
&lt;li&gt;Pro Tips&lt;/li&gt;
&lt;li&gt;Industrial Insight&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🔍 What Are These Commands?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;&lt;code&gt;find&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;A versatile and powerful command to search for files and directories in real time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;find /home/sana &lt;span class="nt"&gt;-name&lt;/span&gt; &lt;span class="s2"&gt;"report.txt"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This searches for a file named &lt;code&gt;report.txt&lt;/code&gt; starting from &lt;code&gt;/home/sana&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;&lt;code&gt;locate&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Faster than &lt;code&gt;find&lt;/code&gt; because it searches through a prebuilt database.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;locate report.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bonus tip: Update the database with &lt;code&gt;sudo updatedb&lt;/code&gt; before using.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;&lt;code&gt;which&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Used to locate the &lt;strong&gt;executable path&lt;/strong&gt; of a command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;which python3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It tells you where &lt;code&gt;python3&lt;/code&gt; is installed on your system.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 Real Life Use Cases
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;✅ &lt;strong&gt;Sysadmin Troubleshooting&lt;/strong&gt; – Find misplaced logs or config files in seconds.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Development Setup&lt;/strong&gt; – Locate compilers, interpreters or toolchains installed.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Audits &amp;amp; Backups&lt;/strong&gt; – Combine &lt;code&gt;find&lt;/code&gt; with &lt;code&gt;mtime&lt;/code&gt; to identify old files for cleanup or backup.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🚀 Pro Tips
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Search files by &lt;strong&gt;modification time&lt;/strong&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  find &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;-mtime&lt;/span&gt; &lt;span class="nt"&gt;-2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Finds files modified in the last 2 days)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Combine &lt;code&gt;find&lt;/code&gt; with &lt;code&gt;exec&lt;/code&gt;:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;  find &lt;span class="nb"&gt;.&lt;/span&gt; &lt;span class="nt"&gt;-type&lt;/span&gt; f &lt;span class="nt"&gt;-name&lt;/span&gt; &lt;span class="s2"&gt;"*.log"&lt;/span&gt; &lt;span class="nt"&gt;-exec&lt;/span&gt; &lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="o"&gt;{}&lt;/span&gt; &lt;span class="se"&gt;\;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Deletes all &lt;code&gt;.log&lt;/code&gt; files from the current directory down)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Want blazing fast results? Use &lt;code&gt;locate&lt;/code&gt; but make sure to run &lt;code&gt;updatedb&lt;/code&gt; first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🛠️ Industrial Insight
&lt;/h2&gt;

&lt;p&gt;In production environments, time matters.&lt;br&gt;
Searching for the right config file or script quickly can reduce downtime.&lt;br&gt;
Advanced users often combine these tools in automation scripts for health checks or audits.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ Quick Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;find&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deep, real-time file searches with powerful filters&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;locate&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Super-fast searches with a prebuilt index&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;which&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Finding executables in your system path&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Mastering these tools means you’ll never lose track of a file again.&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%2Fq93av5ub5ypxp78n6750.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%2Fq93av5ub5ypxp78n6750.png" alt="Image description" width="800" height="1111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Redirecting Output in Linux: &gt;, &gt;&gt;, 2&gt; and |</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:00:38 +0000</pubDate>
      <link>https://forem.com/sanasadiq/redirecting-output-in-linux-2-and--2ieg</link>
      <guid>https://forem.com/sanasadiq/redirecting-output-in-linux-2-and--2ieg</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt; in preparation for the &lt;em&gt;&lt;strong&gt;RHCSA exam&lt;/strong&gt;&lt;/em&gt; and today’s command combo is the secret sauce that makes shell scripting truly powerful. These are the tools of the trade:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;gt;&lt;/code&gt; — Overwrite output to a file&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; — Append output to a file&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;2&amp;gt;&lt;/code&gt; — Redirect error messages&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;|&lt;/code&gt; — Pipe output from one command into another&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Why Output Redirection Even Matters&lt;/li&gt;
&lt;li&gt;The Essentials Explained with Examples&lt;/li&gt;
&lt;li&gt;Real Time Use Cases&lt;/li&gt;
&lt;li&gt;Pro Tips&lt;/li&gt;
&lt;li&gt;Industry Insight&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  ✨ Why Output Redirection Even Matters
&lt;/h2&gt;

&lt;p&gt;Linux is built on the philosophy of small programs doing one thing well and letting you chain them together. That’s where output redirection steps in.&lt;/p&gt;

&lt;p&gt;Whether you're saving logs, chaining commands or managing errors like a pro, output redirection is the magic behind automation and terminal mastery.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 The Essentials Explained with Examples
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;code&gt;&amp;gt;&lt;/code&gt; – Redirect STDOUT (and overwrite)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Hello Linux!"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; greetings.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📌 Creates &lt;code&gt;greetings.txt&lt;/code&gt; (or replaces it) with the message.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; – Redirect STDOUT (and append)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Another line"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; greetings.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📌 Adds content without wiping the file.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;code&gt;2&amp;gt;&lt;/code&gt; – Redirect STDERR
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls &lt;/span&gt;no_such_file 2&amp;gt; error.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📌 Saves the error message to &lt;code&gt;error.log&lt;/code&gt; instead of printing on the screen.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;code&gt;|&lt;/code&gt; – Pipe output to another command
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; /etc/passwd | &lt;span class="nb"&gt;grep &lt;/span&gt;root
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📌 Sends the output of &lt;code&gt;cat&lt;/code&gt; to &lt;code&gt;grep&lt;/code&gt; — only shows lines with “root”.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⌛ Real Time Use Cases
&lt;/h2&gt;

&lt;p&gt;🔹 &lt;strong&gt;System Logging:&lt;/strong&gt;&lt;br&gt;
Redirect logs while running cron jobs or scripts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./backup.sh &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; /var/log/backup.log 2&amp;gt;&amp;amp;1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;— Appends both STDOUT and STDERR into a single log file.&lt;/p&gt;

&lt;p&gt;🔹 &lt;strong&gt;Error Isolation:&lt;/strong&gt;&lt;br&gt;
Troubleshoot issues cleanly by separating errors from standard output.&lt;/p&gt;

&lt;p&gt;🔹 &lt;strong&gt;Command Chaining in Automation:&lt;/strong&gt;&lt;br&gt;
Use &lt;code&gt;|&lt;/code&gt; in pipelines to manipulate data without temporary files.&lt;/p&gt;
&lt;h2&gt;
  
  
  💡 Pro Tips
&lt;/h2&gt;

&lt;p&gt;✅ Combine STDOUT and STDERR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;command&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; all_output.txt 2&amp;gt;&amp;amp;1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Use &lt;code&gt;/dev/null&lt;/code&gt; to silence output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;command&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /dev/null 2&amp;gt;&amp;amp;1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Pipes can be combined endlessly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat &lt;/span&gt;file.txt | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="s2"&gt;"pattern"&lt;/span&gt; | &lt;span class="nb"&gt;sort&lt;/span&gt; | &lt;span class="nb"&gt;uniq&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Create logs with timestamps:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;: Something happened"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; events.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🏭 Industry Insight
&lt;/h2&gt;

&lt;p&gt;In production systems, output redirection is &lt;em&gt;non-negotiable&lt;/em&gt;. Whether it is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Logging errors in backend scripts&lt;/li&gt;
&lt;li&gt;Piping data between tools in CI/CD pipelines&lt;/li&gt;
&lt;li&gt;Redirecting output for backup and restore automation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s the difference between amateur scripts and bulletproof sysadmin workflows.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ Quick Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symbol&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Redirect STDOUT (overwrite)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Redirect STDOUT (append)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;2&amp;gt;&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Redirect STDERR&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;`&lt;/td&gt;
&lt;td&gt;`&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Understanding how Linux handles input, output and error streams helps you take control of &lt;em&gt;everything&lt;/em&gt; that happens under the hood. This is not just a technical skill, it is a core competency.&lt;/p&gt;

&lt;p&gt;Master redirection and you are not just using Linux, you are &lt;em&gt;orchestrating&lt;/em&gt; 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%2F3xj4qdg0fb0gefoe6j4v.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%2F3xj4qdg0fb0gefoe6j4v.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>File Compression &amp; Archiving with tar, gzip and bzip2</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 19:00:08 +0000</pubDate>
      <link>https://forem.com/sanasadiq/file-compression-archiving-with-tar-gzip-and-bzip2-258f</link>
      <guid>https://forem.com/sanasadiq/file-compression-archiving-with-tar-gzip-and-bzip2-258f</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;RHCSA&lt;/strong&gt;&lt;/em&gt; journey with the &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt;. Today, we’re diving into tar, gzip and bzip2; your essential Linux toolkit for file compression and archiving.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What is Archiving vs Compression&lt;/li&gt;
&lt;li&gt;Why This Matters&lt;/li&gt;
&lt;li&gt;Getting Started with tar&lt;/li&gt;
&lt;li&gt;Adding Compression using gzip&lt;/li&gt;
&lt;li&gt;A Bit Slower but Better Compression using bzip2&lt;/li&gt;
&lt;li&gt;Pro Tips&lt;/li&gt;
&lt;li&gt;Real World Use Cases&lt;/li&gt;
&lt;li&gt;Industrial Insight&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  📦 What is Archiving vs Compression?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Archiving&lt;/strong&gt; = Combining multiple files/directories into a single file. (Think: &lt;code&gt;.tar&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compression&lt;/strong&gt; = Reducing the file size using algorithms. (Think: &lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.bz2&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;tar&lt;/strong&gt; = Archive&lt;br&gt;
✅ &lt;strong&gt;gzip&lt;/strong&gt;, &lt;strong&gt;bzip2&lt;/strong&gt; = Compress&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🚀 Why This Matters
&lt;/h2&gt;

&lt;p&gt;If you’ve ever transferred, backed up or stored files in Linux, you’ve already encountered the need for &lt;strong&gt;compression&lt;/strong&gt; or &lt;strong&gt;archiving&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Knowing &lt;strong&gt;how to reduce file size efficiently&lt;/strong&gt; while preserving file structures is a must for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DevOps Engineers 📁&lt;/li&gt;
&lt;li&gt;System Admins 🛠️&lt;/li&gt;
&lt;li&gt;Cloud Professionals ☁️&lt;/li&gt;
&lt;li&gt;And even curious explorers like me! 🧭&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔧 Getting Started with tar
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🎯 Create a &lt;code&gt;.tar&lt;/code&gt; Archive:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-cvf&lt;/span&gt; archive.tar myfolder/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-c&lt;/code&gt; = create&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-v&lt;/code&gt; = verbose&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-f&lt;/code&gt; = filename&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🎉 Now you have a neat archive named &lt;code&gt;archive.tar&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  🎯 Extract a &lt;code&gt;.tar&lt;/code&gt; Archive:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-xvf&lt;/span&gt; archive.tar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  💨 Adding Compression using gzip
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🗜 Compress your archive:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-czvf&lt;/span&gt; archive.tar.gz myfolder/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-z&lt;/code&gt; = use gzip&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📂 Extract it:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-xzvf&lt;/span&gt; archive.tar.gz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ &lt;strong&gt;gzip&lt;/strong&gt; is fast and widely supported.&lt;/p&gt;

&lt;h2&gt;
  
  
  🐢 A Bit Slower but Better Compression using bzip2
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-cjvf&lt;/span&gt; archive.tar.bz2 myfolder/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-j&lt;/code&gt; = use bzip2&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To extract:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;tar&lt;/span&gt; &lt;span class="nt"&gt;-xjvf&lt;/span&gt; archive.tar.bz2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ &lt;strong&gt;bzip2&lt;/strong&gt; compresses better than gzip, but it's a bit slower.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 Pro Tips
&lt;/h2&gt;

&lt;p&gt;✅ Use &lt;code&gt;gzip&lt;/code&gt; for speed, &lt;code&gt;bzip2&lt;/code&gt; for better compression.&lt;br&gt;
✅ Always test your archives before deleting originals.&lt;br&gt;
✅ Combine &lt;code&gt;tar&lt;/code&gt; and compression in one line to save steps.&lt;br&gt;
✅ &lt;code&gt;tar&lt;/code&gt; maintains &lt;strong&gt;permissions and structure&lt;/strong&gt; — super handy!&lt;/p&gt;

&lt;h2&gt;
  
  
  🏭 Real World Use Cases
&lt;/h2&gt;

&lt;p&gt;🔁 &lt;strong&gt;Backup Automation&lt;/strong&gt;: Run daily tar+gzip jobs for &lt;code&gt;/etc&lt;/code&gt;, logs, databases.&lt;br&gt;
🚀 &lt;strong&gt;Deployment Packaging&lt;/strong&gt;: Package entire app directories for deployment.&lt;br&gt;
📦 &lt;strong&gt;File Transfer&lt;/strong&gt;: Compress logs before sending over networks.&lt;br&gt;
📂 &lt;strong&gt;Archival&lt;/strong&gt;: Monthly archives of reports, configs, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  💼 Industrial Insight
&lt;/h2&gt;

&lt;p&gt;Large-scale cloud systems (think AWS EC2, GCP Compute) often use scripts that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Archive logs regularly&lt;/li&gt;
&lt;li&gt;Compress them with &lt;code&gt;gzip&lt;/code&gt;/&lt;code&gt;bzip2&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ship them off to S3/Cloud Storage buckets&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Having full control over file size and structure is key in both &lt;strong&gt;storage cost&lt;/strong&gt; and &lt;strong&gt;performance&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  📝 Quick Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Speed&lt;/th&gt;
&lt;th&gt;Compression&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tar&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Archiving only&lt;/td&gt;
&lt;td&gt;Fast&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;gzip&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Compress faster&lt;/td&gt;
&lt;td&gt;Very fast&lt;/td&gt;
&lt;td&gt;Good&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;bzip2&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Compress better&lt;/td&gt;
&lt;td&gt;Slower&lt;/td&gt;
&lt;td&gt;Better&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Today, I didn’t just “learn Linux commands”, I mastered the art of &lt;strong&gt;tidy packaging&lt;/strong&gt; and &lt;strong&gt;efficient storage&lt;/strong&gt;. It’s empowering to know I can now prepare professional backups and deploy-ready archives like a pro!💪&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%2Frsth570c8tkywc29o2po.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%2Frsth570c8tkywc29o2po.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Disk Space Awareness: df, du and What is Filling Up Your System</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 18:59:28 +0000</pubDate>
      <link>https://forem.com/sanasadiq/disk-space-awareness-df-du-and-what-is-filling-up-your-system-23hh</link>
      <guid>https://forem.com/sanasadiq/disk-space-awareness-df-du-and-what-is-filling-up-your-system-23hh</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;I’m continuing my &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt; as part of my preparation for the &lt;em&gt;&lt;strong&gt;RHCSA exam&lt;/strong&gt;&lt;/em&gt;, and today’s topic might just be a lifesaver for system admins and everyday users alike: understanding &lt;strong&gt;disk space usage&lt;/strong&gt; with &lt;code&gt;df&lt;/code&gt;, &lt;code&gt;du&lt;/code&gt; and how to find what’s clogging up your system.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Why Disk Space Awareness Matters&lt;/li&gt;
&lt;li&gt;What is df&lt;/li&gt;
&lt;li&gt;What is du&lt;/li&gt;
&lt;li&gt;Real Time Scenario&lt;/li&gt;
&lt;li&gt;Industrial Insight&lt;/li&gt;
&lt;li&gt;Recommendations&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  🧱 Why Disk Space Awareness Matters
&lt;/h3&gt;

&lt;p&gt;Running out of disk space can silently break a system whether it's preventing new files from being written, blocking services or even crashing processes. Being proactive is &lt;em&gt;key&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That’s where &lt;code&gt;df&lt;/code&gt; and &lt;code&gt;du&lt;/code&gt; come in, they give you a clear picture of &lt;strong&gt;what's full&lt;/strong&gt;, &lt;strong&gt;why&lt;/strong&gt;, and &lt;strong&gt;how to fix it&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔍 What is df?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;df&lt;/code&gt; (Disk Free) reports available and used disk space on file systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔧 Syntax:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;df&lt;/span&gt; &lt;span class="nt"&gt;-h&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fu3oh1t8eutsp3zmlskhn.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%2Fu3oh1t8eutsp3zmlskhn.png" alt="Image description" width="800" height="59"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;df&lt;/span&gt; &lt;span class="nt"&gt;-h&lt;/span&gt;
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        40G   20G   18G  53% /
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-h&lt;/code&gt;: Human-readable format (MBs, GBs)&lt;/li&gt;
&lt;li&gt;Quickly helps you know &lt;strong&gt;which partition is getting full&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ &lt;strong&gt;Pro Tip&lt;/strong&gt;: Use &lt;code&gt;df -Th&lt;/code&gt; to also show filesystem types like ext4, tmpfs, etc.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  📦 What is du?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;du&lt;/code&gt; (Disk Usage) shows how much space a directory or file consumes.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔧 Syntax:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;du&lt;/span&gt; &lt;span class="nt"&gt;-sh&lt;/span&gt; /path/to/folder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  ✅ Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;du&lt;/span&gt; &lt;span class="nt"&gt;-sh&lt;/span&gt; /var/log
1.2G    /var/log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fdhcbnghxussv7waip5zo.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%2Fdhcbnghxussv7waip5zo.png" alt="Image description" width="800" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-s&lt;/code&gt;: Summary only (don’t dive into subfolders)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;-h&lt;/code&gt;: Human-readable&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;🛠 &lt;strong&gt;Tip&lt;/strong&gt;: Run &lt;code&gt;du -sh *&lt;/code&gt; inside a directory to compare which folders are space hogs.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🧰 Real Time Scenario
&lt;/h2&gt;

&lt;p&gt;You log into a server and see alerts about low disk space. You use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;df&lt;/span&gt; &lt;span class="nt"&gt;-h&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F6kv4946u2mdmnhk8a5h4.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%2F6kv4946u2mdmnhk8a5h4.png" alt="Image description" width="800" height="59"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;to check overall usage — &lt;code&gt;/var&lt;/code&gt; is 90% full.&lt;/p&gt;

&lt;p&gt;Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;du&lt;/span&gt; &lt;span class="nt"&gt;-sh&lt;/span&gt; /var/&lt;span class="k"&gt;*&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fsk5inb4iwry189yu2boa.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%2Fsk5inb4iwry189yu2boa.png" alt="Image description" width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;to locate the culprit — it’s &lt;code&gt;/var/log&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo du&lt;/span&gt; &lt;span class="nt"&gt;-ah&lt;/span&gt; /var/log | &lt;span class="nb"&gt;sort&lt;/span&gt; &lt;span class="nt"&gt;-rh&lt;/span&gt; | &lt;span class="nb"&gt;head&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; 10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F7xsrxgfxb0zcqg3ueixq.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%2F7xsrxgfxb0zcqg3ueixq.png" alt="Image description" width="800" height="221"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;to find &lt;strong&gt;which specific log files are bloating&lt;/strong&gt;. You clear old logs or rotate them. Problem solved.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 Industrial Insight
&lt;/h2&gt;

&lt;p&gt;In cloud deployments and containerized environments (like Docker), &lt;strong&gt;disk bloat is common&lt;/strong&gt;. Backups, logs, caches — they add up silently. Keeping &lt;code&gt;df&lt;/code&gt; and &lt;code&gt;du&lt;/code&gt; in your toolbox can save hours of debugging.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛡️ Recommendations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🔁 Set up &lt;strong&gt;cron jobs&lt;/strong&gt; to monitor disk usage weekly&lt;/li&gt;
&lt;li&gt;📉 Automate cleanup with logrotate&lt;/li&gt;
&lt;li&gt;🚀 Combine &lt;code&gt;find&lt;/code&gt;, &lt;code&gt;du&lt;/code&gt; and &lt;code&gt;xargs&lt;/code&gt; to identify and clean files older than X days&lt;/li&gt;
&lt;li&gt;🧪 Always use &lt;code&gt;-h&lt;/code&gt; in scripts that will be reviewed by humans&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ✨ Quick Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;th&gt;Best Option&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;df&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Check disk usage&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;df -h&lt;/code&gt; or &lt;code&gt;df -Th&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;du&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Folder/file size usage&lt;/td&gt;
&lt;td&gt;&lt;code&gt;du -sh&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Today was all about staying in control, disk space issues don’t wait. Now I know exactly &lt;em&gt;what’s filling up my system&lt;/em&gt; and more importantly, &lt;strong&gt;how to clean it up before it becomes a problem&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%2Fa75mlxpqc0rxyqkycrzq.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%2Fa75mlxpqc0rxyqkycrzq.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Killing Processes Gracefully with kill, pkill and killall</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 18:58:51 +0000</pubDate>
      <link>https://forem.com/sanasadiq/killing-processes-gracefully-with-kill-pkill-and-killall-439p</link>
      <guid>https://forem.com/sanasadiq/killing-processes-gracefully-with-kill-pkill-and-killall-439p</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt; in preparation for the &lt;em&gt;&lt;strong&gt;RHCSA exam&lt;/strong&gt;&lt;/em&gt;. Today is about something powerful yet surprisingly elegant: &lt;strong&gt;gracefully managing running processes&lt;/strong&gt; in Linux. Each command, each concept is another step toward mastery.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What Happens When a Process Misbehaves&lt;/li&gt;
&lt;li&gt;kill&lt;/li&gt;
&lt;li&gt;pkill&lt;/li&gt;
&lt;li&gt;killall&lt;/li&gt;
&lt;li&gt;Real World Scenario&lt;/li&gt;
&lt;li&gt;Pro Tips&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🚨 What Happens When a Process Misbehaves?
&lt;/h2&gt;

&lt;p&gt;Sometimes, a process freezes, eats up memory, or refuses to quit. That’s where Linux gives us three mighty tools to step in with authority but &lt;strong&gt;grace&lt;/strong&gt; too.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;kill&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;pkill&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;killall&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let’s understand how each works.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧰 kill 🗡️
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The Precision Tool&lt;/em&gt; &lt;br&gt;
&lt;code&gt;kill&lt;/code&gt; is used to send signals to &lt;strong&gt;specific processes&lt;/strong&gt; using their &lt;strong&gt;PID (Process ID)&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;kill&lt;/span&gt; &lt;span class="nt"&gt;-SIGTERM&lt;/span&gt; 1234
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fwf770mdhshb89yqob4pj.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%2Fwf770mdhshb89yqob4pj.png" alt="Image description" width="800" height="59"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This sends a &lt;strong&gt;polite request&lt;/strong&gt; (SIGTERM) asking the process to stop. Want to force it?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;kill&lt;/span&gt; &lt;span class="nt"&gt;-9&lt;/span&gt; 1234   &lt;span class="c"&gt;# SIGKILL – Force kill if it's stubborn&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fnmkt1m1v5a48h2t6deyo.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%2Fnmkt1m1v5a48h2t6deyo.png" alt="Image description" width="800" height="61"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;✅ Tip: Always try &lt;code&gt;SIGTERM&lt;/code&gt; before using &lt;code&gt;SIGKILL&lt;/code&gt;. Be kind to your processes!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  🔍 pkill 🔠
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The Pattern Matcher&lt;/em&gt;&lt;br&gt;
Don’t want to look up PIDs? &lt;code&gt;pkill&lt;/code&gt; lets you target processes by name or pattern:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pkill firefox
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Foy8ux94ura4s33l34f0r.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%2Foy8ux94ura4s33l34f0r.png" alt="Image description" width="800" height="61"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This will gracefully terminate all processes with the name "firefox".&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Need to be more specific?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pkill &lt;span class="nt"&gt;-u&lt;/span&gt; sana chrome
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fgu78s7sieygzrd89zxd1.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%2Fgu78s7sieygzrd89zxd1.png" alt="Image description" width="800" height="63"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This targets only Chrome processes run by user &lt;code&gt;sana&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧼 killall 🧹
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;The Sweeper Broom&lt;/em&gt;&lt;br&gt;
Use &lt;code&gt;killall&lt;/code&gt; to kill &lt;strong&gt;all instances&lt;/strong&gt; of a process by name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;killall &lt;span class="nt"&gt;-15&lt;/span&gt; node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fijjj8ruxdqium048g809.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%2Fijjj8ruxdqium048g809.png" alt="Image description" width="800" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This sends &lt;strong&gt;SIGTERM&lt;/strong&gt; to all "node" processes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;killall &lt;span class="nt"&gt;-9&lt;/span&gt; node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fqfvp76tdrqaxs4f1je26.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%2Fqfvp76tdrqaxs4f1je26.png" alt="Image description" width="800" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Force kill them if they don’t cooperate.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎯 Real World Scenario
&lt;/h2&gt;

&lt;p&gt;Imagine you’re deploying a Node.js server and something goes haywire. Rather than finding the exact PID:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;killall node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One command. All processes. &lt;strong&gt;Clean slate.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  ✨ Pro Tips
&lt;/h2&gt;

&lt;p&gt;✅ Prefer &lt;code&gt;SIGTERM&lt;/code&gt; over &lt;code&gt;SIGKILL&lt;/code&gt; — it gives apps time to clean up.&lt;br&gt;
✅ Use &lt;code&gt;pgrep&lt;/code&gt; first to check what you're about to kill.&lt;br&gt;
✅ Log process shutdowns in production environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧩 Quick Summary
&lt;/h2&gt;

&lt;p&gt;Learning to gracefully stop processes isn’t just about control — it's about &lt;strong&gt;respecting the system’s state&lt;/strong&gt;, and ensuring stability with precision. And now you're confidently in control when it comes to managing Linux processes onwards and upwards.&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%2Fevqc9c2qzfwjf0pn1ee5.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%2Fevqc9c2qzfwjf0pn1ee5.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Viewing Processes with ps, top and htop</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Thu, 08 May 2025 18:57:31 +0000</pubDate>
      <link>https://forem.com/sanasadiq/viewing-processes-with-ps-top-and-htop-93n</link>
      <guid>https://forem.com/sanasadiq/viewing-processes-with-ps-top-and-htop-93n</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;strong&gt;&lt;em&gt;30-Day Linux Challenge&lt;/em&gt;&lt;/strong&gt; for RHCSA preparation with the &lt;em&gt;#CloudWhistler&lt;/em&gt; community led by &lt;strong&gt;&lt;em&gt;Ali Sohail&lt;/em&gt;&lt;/strong&gt;. Today I’m diving into a topic that helps you &lt;em&gt;see what's really happening&lt;/em&gt; inside your Linux system &lt;strong&gt;process monitoring&lt;/strong&gt;. In this article, I’m exploring three powerful commands: &lt;code&gt;ps&lt;/code&gt;, &lt;code&gt;top&lt;/code&gt; and &lt;code&gt;htop&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What Are Processes in Linux&lt;/li&gt;
&lt;li&gt;ps Process Snapshot&lt;/li&gt;
&lt;li&gt;top Real Time Process Viewer&lt;/li&gt;
&lt;li&gt;htop Enhanced Top&lt;/li&gt;
&lt;li&gt;Real Life Use Cases&lt;/li&gt;
&lt;li&gt;Recommendations&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  🧠 What Are Processes in Linux?
&lt;/h3&gt;

&lt;p&gt;Every running task or application in Linux is a &lt;strong&gt;process&lt;/strong&gt;. These include services, system tasks and commands you run in the terminal.&lt;/p&gt;

&lt;p&gt;Being able to &lt;strong&gt;view and manage processes&lt;/strong&gt; is essential to troubleshoot, monitor system load and understand how your machine is performing.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔍 ps Process Snapshot
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;ps&lt;/code&gt; command gives you a &lt;strong&gt;snapshot&lt;/strong&gt; of currently running processes.&lt;/p&gt;

&lt;h4&gt;
  
  
  Basic usage:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F308gp46eprv9feqvtxlz.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%2F308gp46eprv9feqvtxlz.png" alt="Image description" width="800" height="129"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Show all processes with detailed output:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps aux
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fngjbsxh9bj6xwehfgeq9.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%2Fngjbsxh9bj6xwehfgeq9.png" alt="Image description" width="800" height="483"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Filter by user:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps &lt;span class="nt"&gt;-u&lt;/span&gt; sana
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fe3gazd07w86rszimhdr6.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%2Fe3gazd07w86rszimhdr6.png" alt="Image description" width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Search by process name:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps aux | &lt;span class="nb"&gt;grep &lt;/span&gt;firefox
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fabbrmgf7apox76t0nnmf.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%2Fabbrmgf7apox76t0nnmf.png" alt="Image description" width="800" height="63"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  📊 top Real Time Process Viewer
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;top&lt;/code&gt; command shows a &lt;strong&gt;dynamic, real-time view&lt;/strong&gt; of system processes.&lt;/p&gt;

&lt;h4&gt;
  
  
  Just run:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;top
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fgu1vl4opdgqp5aize8vr.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%2Fgu1vl4opdgqp5aize8vr.png" alt="Image description" width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use keyboard shortcuts inside &lt;code&gt;top&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;k&lt;/code&gt; to kill a process&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;q&lt;/code&gt; to quit&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;P&lt;/code&gt; to sort by CPU usage&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;M&lt;/code&gt; to sort by memory usage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;📌 &lt;em&gt;Pro Tip:&lt;/em&gt; It’s already available on most Linux systems by default!&lt;/p&gt;

&lt;h3&gt;
  
  
  🚀 htop Enhanced Top
&lt;/h3&gt;

&lt;p&gt;If you want a more &lt;strong&gt;interactive and colorful&lt;/strong&gt; view, try &lt;code&gt;htop&lt;/code&gt;. It offers a scrollable interface and allows you to manage processes with your keyboard.&lt;/p&gt;

&lt;h4&gt;
  
  
  Install htop:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;dnf &lt;span class="nb"&gt;install &lt;/span&gt;htop     &lt;span class="c"&gt;# RHEL/Fedora&lt;/span&gt;
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;htop     &lt;span class="c"&gt;# Ubuntu/Debian&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fndv38ezqjfh8z3hjmmbd.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%2Fndv38ezqjfh8z3hjmmbd.png" alt="Image description" width="800" height="59"&gt;&lt;/a&gt;&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;htop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fqnu3xvnmm9aotzepahcb.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%2Fqnu3xvnmm9aotzepahcb.png" alt="Image description" width="800" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🟢 Use arrow keys to scroll, &lt;code&gt;F9&lt;/code&gt; to kill a process and &lt;code&gt;F10&lt;/code&gt; to quit.&lt;/p&gt;

&lt;h3&gt;
  
  
  💼 Real Life Use Cases
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🛠️ Troubleshooting slow systems&lt;/li&gt;
&lt;li&gt;🧠 Identifying memory or CPU-heavy applications&lt;/li&gt;
&lt;li&gt;🧹 Killing unresponsive background services&lt;/li&gt;
&lt;li&gt;🛡️ Monitoring server performance in real-time&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🌱 Recommendations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;ps&lt;/code&gt; when you want a quick look at what's running.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;top&lt;/code&gt; or &lt;code&gt;htop&lt;/code&gt; when you want live monitoring.&lt;/li&gt;
&lt;li&gt;Don’t kill processes unless you know what they do.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ Quick Summary
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Use Case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Quick snapshot of processes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;top&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Live process monitoring&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;htop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Interactive and user-friendly process viewer&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you’ve ever wondered how to peek under the hood of your Linux machine, these tools are your &lt;strong&gt;go-to companions&lt;/strong&gt;. And yes once you get used to &lt;code&gt;htop&lt;/code&gt;, there’s no going back. 😄&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%2Fej42x4hks9nwjfia6zrg.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%2Fej42x4hks9nwjfia6zrg.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Switching Users with su and sudo (And When to Use Them)</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Tue, 06 May 2025 18:38:05 +0000</pubDate>
      <link>https://forem.com/sanasadiq/switching-users-with-su-and-sudo-and-when-to-use-them-35ok</link>
      <guid>https://forem.com/sanasadiq/switching-users-with-su-and-sudo-and-when-to-use-them-35ok</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt; in preparation for the &lt;em&gt;&lt;strong&gt;RHCSA exam&lt;/strong&gt;&lt;/em&gt;, today's focus is on something every Linux user needs to get comfortable with early on &lt;strong&gt;switching users securely and smartly using &lt;code&gt;su&lt;/code&gt; and &lt;code&gt;sudo&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Both commands give access to elevated privileges but they’re meant for different situations. And knowing the &lt;em&gt;right&lt;/em&gt; way to use them can protect your system, your work and your team.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What is the Difference&lt;/li&gt;
&lt;li&gt;Basic Usage with Examples&lt;/li&gt;
&lt;li&gt;Key Differences&lt;/li&gt;
&lt;li&gt;Real World Scenario&lt;/li&gt;
&lt;li&gt;Industry Tip&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  🔍 What is the Difference?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;su&lt;/code&gt; stands for &lt;strong&gt;substitute user&lt;/strong&gt;. By default, it switches to the &lt;strong&gt;root&lt;/strong&gt; user unless you specify another username.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo&lt;/code&gt; stands for &lt;strong&gt;superuser do&lt;/strong&gt;. It allows &lt;strong&gt;temporary elevation&lt;/strong&gt; of privileges to run a single command as another user (commonly root).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  💡 Basic Usage with Examples
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;su&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Switch to root (requires root password)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;su - username&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Switch to another user&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sudo command&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Run one command as root (requires current user's password)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sudo -u username command&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Run a command as a specific user&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h4&gt;
  
  
  🧪 Examples:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;su
su - sana
&lt;span class="nb"&gt;sudo &lt;/span&gt;dnf check-update
&lt;span class="nb"&gt;sudo&lt;/span&gt; &lt;span class="nt"&gt;-u&lt;/span&gt; postgres psql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2F5oresee8vc5swfxgfmxr.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%2F5oresee8vc5swfxgfmxr.png" alt="Image description" width="800" height="60"&gt;&lt;/a&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%2Fu8yiucep6d96t4hn2huw.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%2Fu8yiucep6d96t4hn2huw.png" alt="Image description" width="800" height="59"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  🔐 Key Differences
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;su&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;sudo&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Requires root password&lt;/td&gt;
&lt;td&gt;Uses current user's password&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Starts a new shell&lt;/td&gt;
&lt;td&gt;Executes a single command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can be risky if left open&lt;/td&gt;
&lt;td&gt;Safer, logs activity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Doesn’t require configuration&lt;/td&gt;
&lt;td&gt;Needs user in &lt;code&gt;sudoers&lt;/code&gt; file&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  🌱 Real World Scenario
&lt;/h3&gt;

&lt;p&gt;Imagine you're managing a server and you need to edit a protected config file. If you use &lt;code&gt;su&lt;/code&gt; and forget to exit, your shell stays elevated — risky. Using &lt;code&gt;sudo&lt;/code&gt; for just that one command reduces the risk of accidental changes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;nano /etc/ssh/sshd_config
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fi7i08tdis2m4sn9kb5gl.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%2Fi7i08tdis2m4sn9kb5gl.png" alt="Image description" width="800" height="79"&gt;&lt;/a&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%2F97t0le6lc8qlncp8h0x7.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%2F97t0le6lc8qlncp8h0x7.png" alt="Image description" width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This way, you're doing exactly what’s needed — nothing more, nothing less.&lt;/p&gt;

&lt;h3&gt;
  
  
  💼 Industry Tip
&lt;/h3&gt;

&lt;p&gt;✅ Many sysadmins disable root login and rely entirely on &lt;code&gt;sudo&lt;/code&gt; for tighter security and clearer audit logs.&lt;br&gt;
✅ Always use &lt;code&gt;sudo&lt;/code&gt; unless you &lt;em&gt;must&lt;/em&gt; become another user with a full shell.&lt;/p&gt;

&lt;p&gt;💬 &lt;strong&gt;Pro Tip&lt;/strong&gt;: You can limit &lt;code&gt;sudo&lt;/code&gt; access by role or command in &lt;code&gt;/etc/sudoers&lt;/code&gt;, offering precision control in enterprise environments.&lt;/p&gt;

&lt;p&gt;If you’ve ever been unsure when to use &lt;code&gt;su&lt;/code&gt; vs &lt;code&gt;sudo&lt;/code&gt;, I hope this cleared it up!&lt;/p&gt;

&lt;h3&gt;
  
  
  ✅ Quick Summary
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Use &lt;code&gt;su&lt;/code&gt; to fully switch users (like debugging as another user).&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;sudo&lt;/code&gt; for privilege elevation &lt;strong&gt;without changing users&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Prioritize security and visibility.&lt;/li&gt;
&lt;/ul&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%2Fwk5pw1c40qh7w0w3q69d.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%2Fwk5pw1c40qh7w0w3q69d.png" alt="Image description" width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Navigate Linux Like a Pro: Understanding Absolute vs Relative Paths</title>
      <dc:creator>Sana Muhammad Sadiq</dc:creator>
      <pubDate>Sat, 03 May 2025 17:57:01 +0000</pubDate>
      <link>https://forem.com/sanasadiq/navigate-linux-like-a-pro-understanding-absolute-vs-relative-paths-37c3</link>
      <guid>https://forem.com/sanasadiq/navigate-linux-like-a-pro-understanding-absolute-vs-relative-paths-37c3</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As I continue my &lt;em&gt;&lt;strong&gt;RHCSA&lt;/strong&gt;&lt;/em&gt; journey with the &lt;em&gt;&lt;strong&gt;30-day Linux challenge&lt;/strong&gt;&lt;/em&gt;, today’s focus is all about &lt;strong&gt;mastering paths&lt;/strong&gt; something that might seem small but it plays a huge role in working effectively within a Linux environment.&lt;/p&gt;

&lt;p&gt;Understanding the difference between &lt;strong&gt;absolute&lt;/strong&gt; and &lt;strong&gt;relative paths&lt;/strong&gt; is essential for navigating the file system with confidence, writing scripts and managing tasks precisely. So let’s simplify this with examples, tips and real-world use.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Index&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;What Are Paths in Linux&lt;/li&gt;
&lt;li&gt;Practice&lt;/li&gt;
&lt;li&gt;Real Time Scenario&lt;/li&gt;
&lt;li&gt;Recommendations&lt;/li&gt;
&lt;li&gt;Quick Summary&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🧭 What Are Paths in Linux?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;path&lt;/strong&gt; is the address of a file or directory in the Linux filesystem. It tells the shell where a file or folder is located.&lt;/p&gt;

&lt;p&gt;There are &lt;strong&gt;two types&lt;/strong&gt; of paths:&lt;/p&gt;

&lt;h3&gt;
  
  
  🔹 Absolute Path
&lt;/h3&gt;

&lt;p&gt;An &lt;strong&gt;absolute path&lt;/strong&gt; starts from the root (&lt;code&gt;/&lt;/code&gt;) and shows the full directory route to the file or folder.&lt;/p&gt;

&lt;p&gt;📦 &lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/home/sana/documents/report.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This points to the exact location no matter where you are in the system.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔹 Relative Path
&lt;/h3&gt;

&lt;p&gt;A &lt;strong&gt;relative path&lt;/strong&gt; starts from your &lt;strong&gt;current directory&lt;/strong&gt;. It doesn’t begin with &lt;code&gt;/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;📦 &lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;documents/report.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This works if you are already in &lt;code&gt;/home/sana&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;📝 Use &lt;code&gt;.&lt;/code&gt; (current directory) and &lt;code&gt;..&lt;/code&gt; (parent directory) to move within paths:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ../downloads
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  📂 Practice
&lt;/h2&gt;

&lt;h3&gt;
  
  
  🔍 Check where you are:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;pwd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  📁 Move using absolute path:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /home/sana/projects
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🚶 Move using relative path:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; ../projects
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🛠️ Real Time Scenario
&lt;/h2&gt;

&lt;p&gt;You’re writing a shell script to copy files. If you use a &lt;strong&gt;relative path&lt;/strong&gt; and the script runs from a different directory it fails. Using an &lt;strong&gt;absolute path&lt;/strong&gt; ensures reliability.&lt;/p&gt;

&lt;p&gt;✅ &lt;strong&gt;Pro Tip:&lt;/strong&gt; In automation (like cron jobs), always prefer &lt;strong&gt;absolute paths&lt;/strong&gt; for consistency.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 Recommendations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Practice moving around using both types of paths.&lt;/li&gt;
&lt;li&gt;Try writing a script using absolute paths, then modify it with relative ones.&lt;/li&gt;
&lt;li&gt;Combine this knowledge with &lt;code&gt;cd&lt;/code&gt;, &lt;code&gt;pwd&lt;/code&gt;, &lt;code&gt;ls&lt;/code&gt; and &lt;code&gt;find&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🚀 Quick Summary
&lt;/h2&gt;

&lt;p&gt;Even the smallest habits like using the correct path can save you hours of confusion and debugging.&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%2F2oz3b4r4hox34erqqjwy.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%2F2oz3b4r4hox34erqqjwy.png" alt="Image description" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts, insights or experiences with Linux. Feel free to share and join the conversation [ Connect with me on LinkedIn &lt;a href="http://www.linkedin.com/in/techwithsana" rel="noopener noreferrer"&gt;www.linkedin.com/in/techwithsana&lt;/a&gt; ]💜&lt;/p&gt;

&lt;p&gt;#30dayslinuxchallenge #redhat #networking #cloudcomputing #cloudengineer #cloudarchitect #cloud #RHCSA #RHCE #RHEL #WomeninTech #Technology&lt;/p&gt;

</description>
      <category>cloudwhistler</category>
      <category>opensource</category>
      <category>devops</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
