<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hello Root on Medium]]></title>
        <description><![CDATA[Stories by Hello Root on Medium]]></description>
        <link>https://medium.com/@helloroot?source=rss-16c5973ccca4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*t9jV7-da0qWBoasKqPEO8g.png</url>
            <title>Stories by Hello Root on Medium</title>
            <link>https://medium.com/@helloroot?source=rss-16c5973ccca4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:32:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@helloroot/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Risk of Sharing Logs with AI]]></title>
            <link>https://helloroot.medium.com/the-risk-of-sharing-logs-with-ai-5a477aea977c?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a477aea977c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 13:21:11 GMT</pubDate>
            <atom:updated>2026-07-20T13:21:38.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BSFmvfcZOn-t9xu3cha9Q.png" /></figure><p>AI, aka Artificial Intelligence, has fundamentally changed the way developers, DevOps engineers, system administrators, and almost all IT professionals troubleshoot applications. Tasks that once required reading through hundreds of lines of logs, searching documentation, or reproducing issues manually can now often be completed within minutes using AI assistants like ChatGPT, Claude, or Gemini. These tools can identify exceptions, explain stack traces, detect configuration issues, and most importantly, suggest potential fixes. For many of us, AI has become an indispensable part of our daily workflow.</p><p>While AI has made debugging faster and more accessible, it has also introduced a serious security concern that many developers or system administrators overlook. The convenience of simply copying and pasting logs into an AI chatbot often matters more than the thought of what those logs actually contain. In the rush to find a solution, it’s easy to forget that production logs are not just blocks of text , but they often contain sensitive information that should never leave a system, server, or an organization’s environment without proper consideration.</p><p>Production logs can reveal far more than just application errors. Depending on how an application is configured, logs may include IP addresses, email addresses, usernames, customer identifiers, authentication tokens, session IDs, API keys, database connection strings, internal hostnames, file system paths, request headers, cookies, and even fragments of customer data if the logs are enterprise level. Although these details are incredibly useful when diagnosing issues, they can also expose confidential information if shared carelessly.</p><p>The concern isn’t limited to own projects either. Many developers, or system engineers work on applications for clients or employers, where the data contained in logs belongs to someone else. Uploading those logs to any third-party service without permission could violate company policies, contractual obligations, and/or privacy regulations. Even if the intention is simply to fix a bug more quickly, sharing sensitive production data outside an organization is appropriate.</p><p>This doesn’t mean AI tools should be completely avoided. On the contrary, they are incredibly effective at increasing the speed of troubleshooting, explaining unfamiliar technologies, and reducing the time spent for investigating issues. The goal is not to stop using AI but to adopt safer practices when using it. In most debugging scenarios, an AI model doesn’t need to know the actual email address of a user, the real API key, or the exact hostname of a server. It only needs enough context to understand the problem.</p><p><strong>That’s where log sanitation becomes important.</strong></p><p>Sanitizing logs involves identifying sensitive information and replacing or masking it before sharing the logs with anyone else. Instead of exposing a real email address, you can replace it with <em>[EMAIL]</em>. Instead of revealing an API key, replace it with <em>[API_KEY]</em>. IP addresses can become <em>[IP_ADDRESS]</em>, database connection strings can be replaced with <em>[DATABASE_URL]</em>, and session identifiers can be masked while preserving the overall structure of the log. This approach maintains the context required for debugging while significantly reducing the risk of exposing confidential information.</p><p><em>Consider the following example.</em></p><p>Instead of sharing:</p><pre>User john.doe@example.com authenticated from 192.168.1.25 using API key sk_live_123456789abcdef</pre><p>We could instead share:</p><pre>User [EMAIL] authenticated from [IP_ADDRESS] using API key [API_KEY]</pre><p>From a debugging perspective, the AI still has everything it needs to understand the authentication flow and identify potential issues. At the same time, we’ve now removed information that could otherwise compromise security or privacy.</p><p>After repeatedly finding myself manually replacing sensitive information before asking AI for help, I decided to automate (Yes, I am a former QA Engineer, lol 🛠️). As a side project (yes, it’s mostly vibe coded), I built <a href="https://www.devcraftkit.com/"><strong><em>DevCraftKit</em></strong></a>, a growing collection of utilities designed for developers, DevOps engineers, networking professionals, and system administrators.</p><p>One of the tools included in <a href="https://www.devcraftkit.com/"><strong><em>DevCraftKit</em></strong></a> is the <a href="https://www.devcraftkit.com/tools/log-sanitizer"><strong><em>Log Sanitizer</em></strong></a>. Its purpose is simple: To detect common sensitive information in logs and replace or mask it while keeping the logs readable and useful for troubleshooting. Instead of spending several minutes editing log files by hand, it can help to sanitize them quickly before sharing them with AI tools, colleagues, or even any public forums.</p><p>Although the <a href="https://www.devcraftkit.com/tools/log-sanitizer"><strong><em>Log Sanitizer</em></strong></a> was one of the first tools I built, <a href="https://www.devcraftkit.com/"><strong><em>DevCraftKit</em></strong></a> is intended to become much more than a single-purpose utility. The platform is gradually evolving into a toolkit containing practical resources for software development, DevOps, networking, Linux administration, cybersecurity, and other day-to-day engineering tasks. The objective is to build lightweight tools that solve small but common problems encountered by technical teams and learners.</p><p>The project is still under active development, and many more utilities are planned. Since most of the project has been vibe coded, I’ve been able to rapidly experiment with ideas and build tools that I personally wanted in my own workflow. There’s still plenty to improve, but the goal remains the same, create simple, useful tools that save time.</p><p>If anyone regularly use AI to debug applications, I’d encourage to adopt one additional habit before pasting logs into any AI assistant : Just sanitize them first. It only takes a moment, but it can prevent the accidental exposure of information that should remain private.</p><p>If anyone like to try the Log Sanitizer or explore the other developer utilities available on the platform, visit:</p><p><a href="https://www.devcraftkit.com/">https://www.devcraftkit.com/</a></p><p>I’d genuinely appreciate any feedback, suggestions, or ideas for new tools. If there’s an idea that you’d like to include, let me know , it might become the next addition to <a href="https://www.devcraftkit.com/"><strong><em>DevCraftKit</em></strong></a>.</p><h4>Was AI used in this blog?</h4><p>Yep! 😄 The ideas, opinions, research, and overall thoughts of this article are my own. After drafting the content, I use AI tools, such as ChatGPT, Gemini, or Claude to help improve grammar, rephrase sentences, enhance readability, and clean up formatting.</p><p>The ideas, opinions, and final approval are still mine . AI just helps me present them better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a477aea977c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Januscape (CVE-2026–53359): 16-Year Old Linux KVM Vulnerability That Affects Virtual Machine…]]></title>
            <link>https://helloroot.medium.com/januscape-cve-2026-53359-16-year-old-linux-kvm-vulnerability-that-affects-virtual-machine-b2cfb7190c8a?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2cfb7190c8a</guid>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[januscape]]></category>
            <category><![CDATA[cve]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Wed, 08 Jul 2026 06:32:08 GMT</pubDate>
            <atom:updated>2026-07-08T06:32:08.594Z</atom:updated>
            <content:encoded><![CDATA[<h3>Januscape (CVE-2026–53359): 16-Year Old Linux KVM Vulnerability That Affects Virtual Machine Isolation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjaFAiMOPRYosnfWnk9Rcg.png" /></figure><p>Virtualization is now one of the technologies which is heavily powering the modern cloud computing. Many public cloud providers, enterprise data centers, hosting companies, and virtualization platforms rely heavily on the Linux Kernel-based Virtual Machine (KVM) hypervisor to securely isolate virtual machines from one another and from the underlying host OS. This isolation is required when the VMs remain completely separated, even when multiple virtual machines share the same physical hardware.</p><p>In July 06 2026, security researcher Hyunwoo Kim disclosed a major vulnerability known as Januscape, tracked as CVE-2026–53359, that challenges this. This flaw affects KVM on x86 systems, and enables a malicious guest virtual machine to potentially escape its isolation boundary and compromise the host operating system. The vulnerability is concerning because it remained hidden in the Linux kernel for nearly 16 years before being discovered now and getting patched.</p><h4>What is Januscape?</h4><p>Januscape is a guest-to-host escape vulnerability identified in the Linux KVM hypervisor. Unlike vulnerabilities that affect a virtual machine itself, Januscape targets the virtualization layer. A successful exploitation allows code executing inside a guest VM to interfere with the host kernel, breaking one of the strongest security provided by virtualization.</p><p>The vulnerability exists in the shadow Memory Management Unit (MMU) implementation of KVM/x86. A flaw in how shadow page structures are managed lead to a use-after-free condition, allowing attackers to corrupt host kernel memory.</p><p>It was noticed that the issue had existed since around 2010, making it one of the longest-lived KVM security vulnerabilities publicly disclosed yet. The upstream Linux kernel fixed the issue in June 2026 by introducing stricter validation during shadow page reuse.</p><h4>Which Systems Are Affected?</h4><p>Januscape affects Linux systems running the KVM hypervisor on x86 architectures, including both Intel and AMD processors.</p><p>The vulnerability is most dangerous in environments where:</p><ul><li>KVM is used as the hypervisor.</li><li>Nested virtualization is enabled.</li><li>Multiple tenants share the same physical host.</li></ul><p>Because many public cloud providers offer nested virtualization for development, testing, and virtualization works, these environments could become particularly notable targets.</p><p>Januscape does not affect ARM64 KVM because the vulnerability exists specifically within the x86 shadow paging implementation.</p><h4>Potential Impact</h4><p>If successfully exploited, Januscape can have severe consequences. The most critical outcome is guest-to-host escape, where an attacker can gain the ability to execute code on the parent host operating system from inside a virtual machine. Once the host is compromised, the attacker may obtain complete administrative control over the hypervisor.</p><p>This could allow the attacker to access or modify other virtual machines, steal sensitive information stored on neighboring VMs, install malware on the host, crash the host kernel, causing DoS, compromise the integrity of an entire virtualization cluster, etc.</p><p>Many cloud providers depend heavily on virtualization isolation to securely host differennt workloads from thousands of different customers on shared hardwares.</p><p>Januscape vulnerability directly threatens this model because it enables an attacker operating inside one virtual machine to target the physical host itself. Once the hypervisor is compromised, every virtual machine running on that server could potentially be exposed to the attacker.</p><p>Services using nested virtualization are especially affected because nested virtualization forces KVM to use code paths involving the vulnerable shadow MMU implementation.</p><p>Some Linux distributions also expose /dev/kvm with permissive permissions, say 0666. In such environments, it is also noted that the vulnerability could additionally be abused as a local privilege escalation vulnerability, although the guest-to-host escape remains the primary concern here.</p><h4>Patching</h4><p>The Linux kernel community addressed Januscape by modifying the shadow page reuse logic to perform additional validation before reusing shadow page structures. Kernel maintainers released patches across supported stable kernel branches, and Linux distributions have begun shipping backported fixes.</p><p>Users cannot verify the patch by soley relying on kernel version numbers because many distributions backport security patches without changing the main version string.</p><h4>How to Verify A System</h4><p>The Linux stable kernel maintainers released fixes on 4 July 2026 across all supported long-term branches. Most major Linux distributions have begun shipping security updates that include the Januscape fix.</p><p>To determine whether a server/system is protected, first identify the running kernel:</p><blockquote>uname -r</blockquote><p>Next, check the Linux distribution’s security advisory or package changelog to verify that the Januscape backport has been applied. Many enterprise distributions often retain older kernel version numbers while incorporating the latest security fixes.</p><h4>Final Note</h4><p>Januscape (CVE-2026–53359) is one of the most significant Linux KVM vulnerabilities disclosed in recent years, and is a reminder that even widely trusted software can contain critical vulnerabilities for many years before discovery. Its ability to break guest-to-host isolation makes it particularly dangerous for virtualization hosts running different, untrusted workloads. The flaw remained hidden for nearly sixteen years, it shows how subtle bugs in low-level memory management can persist within complex systems.</p><p>While exploitation requires specific conditions, most notably KVM on x86 with nested virtualization, the potential impact is severe enough that users need to treat this vulnerability as a high-priority security issue. Prompt kernel updates, and timely application of vendor patches remain the most effective defenses against Januscape and similar hypervisor-level vulnerabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2cfb7190c8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Online Movie Ticket Booking Avoids Double Booking For Seats?]]></title>
            <link>https://helloroot.medium.com/cinema-seat-reservation-and-booking-e891789259b3?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e891789259b3</guid>
            <category><![CDATA[theater]]></category>
            <category><![CDATA[online-booking-system]]></category>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[online-ticket-booking]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Sat, 27 Dec 2025 09:10:31 GMT</pubDate>
            <atom:updated>2025-12-27T09:10:31.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q6mo5OUEoP9e4AeM84FMSQ.png" /></figure><p>I’ve been booking movie tickets through various methods over the past many years, including BookMyShow, Paytm, District, Amazon Pay, theatre website, and even via the local ticket counter. Being more enthusiastic about how things work, I always wondered how they avoid double booking of the a screen, such that the same seat for the same show is not booked by different people trying to book across different platforms. If it was a single platform providing the booking, we can simply assume that some kind of cache mechanism or database locking can be implemented for a specific time period so that no one else can book the same seat. But in the case of theatres, the booking is spread across multiple platforms.</p><p>Being curious, I decided to take a dive into how it is managed for this booking process. In reality, this process is actually a result of a carefully layered system involving aggregators (booking platforms), cinema providers, synchronous blocking, and fast in-memory systems, all working together in real time.</p><h3>Aggregators vs Providers</h3><p>The most important thing to understand is that platforms like BookMyShow and Paytm are only aggregators, not the real seat owners. They do not own the cinema halls, the shows, the seating, or the final booking authority. Their role is to provide UI for booking, payment infrastructure, etc. The original source of booking is always the cinema theater or their ticketing provider. That is the system that controls what seats exist and whether a ticket can be issued.</p><p>This provider could be the theater’s internal ticketing system or a third-party cinema management system. No matter how many platforms for booking exist, they all ultimately point to this provider only.</p><p>Every seat of the theater exists only on this one central ticketing system, with a clear status such as available, blocked, or sold.</p><p>Whenever we open a show seating layout on any platform, that platform fetches the current seat map from the same central system. This ensures that all platforms see the same status at the same time.</p><h3>How seat availability is shown in real time?</h3><p>When we open seat selection for a show, the booking platform makes a live request to the central backend system, asking for the latest seat status. The backend then responds with a seat status that clearly marks which seats are free, which ones are temporarily blocked by other users, and which ones are already sold.</p><p>For example, if the seat <em>F13</em> was sold a few minutes ago at the theater counter, it will instantly appear as unavailable on BookMyShow, District, and on the theater&#39;s own website. Likewise, if a seat is being held by someone mid-payment on another app, it will show up as blocked everywhere else. This real-time synchronization is what keeps all platforms aligned.</p><h4>Temporary seat blocking</h4><p>This is the key mechanism that prevents double booking and can be said as temporary seat blocking. When you book movie tickets via online, you would have seen that if you select a seat, then cancel at the payment screen and come back again to the seat layout, the same seat you have selected will be unavailable for booking for some more time (commonly five to ten minutes). This is because the moment a user selects seats and moves toward payment, the booking platform sends a request to the central system asking it to block those seats.</p><p>The backend then marks the selected seats as blocked and attaches the required metadata such as the platform name, the user session, expiry time, etc. From that exact moment, no other platform can sell or block those seats. They appear as unavailable everywhere, including at the theater’s local counter.</p><p>This happens automatically and in real time, without these platforms even making connections to each other directly.</p><h3>Payment success</h3><p>The temporary blocking of the seats is intentionally a short time period. If the user completes payment within the allowed time, the booking platform sends a confirmation to the central system. The seat status is then permanently updated from blocked to sold, and a ticket number or QR code is generated as required.</p><p>If payment fails or the user cancels the booking process, the expiry timer eventually expires. When it does, the system automatically releases the seat back into the available list. Once released, the seat becomes visible and selectable again across all platforms for booking. This design prevents users from holding seats indefinitely without paying.</p><p><em>PS:</em> There was a recent case in Kerala where the owner of a rival theater exploited this loophole by repeatedly selecting all the seats for shows at another theater. By holding the seats until the blocking time expired and then repeating the process, they intentionally prevented people from booking tickets for that theater.</p><h4>Automatic release</h4><p>The provider (central repository) is the one who decides the temporary block duration, not the booking platform, so that every platform shows the same expiry duration while booking. Aggregators may keep their own timers for UI purposes, but the provider’s TTL is the final authority.</p><p>If payment is not completed within the allowed time, the provider automatically releases the seat. The seat becomes available again across all channels, and the aggregators need to refresh or re-query to show the real-time seat availability.</p><p>This ensures fairness and prevents seats from being locked indefinitely due to app crashes, poor networks, or cancelled payments.</p><h3>Physical counters at theaters</h3><p>Cinema ticket counters are also fitting under the same process. Counter staff use POS software that connects to the same central inventory system, similar to booking platforms. When the counter tries to sell a seat, the system checks its live status before allowing the sale.</p><p>If a seat is blocked online at that moment, the counter system will simply not allow it to be sold. From the system’s perspective, an online booking app and a physical counter are just two different clients accessing the same backend.</p><h3>Handling simultaneous clicks and high demand</h3><p>During high-demand shows, such as opening-day shows, most hyped movies, etc., many users may click the same seat at nearly the same time. To handle this safely, the backend system relies on strong concurrency controls. Seat updates are processed as atomic database transactions, and many systems also use fast in-memory locking mechanisms.</p><p>This ensures that even if two requests arrive milliseconds apart, only one of them can successfully block the seat. The other request is immediately rejected or forced to show an error message. This is why we sometimes see a message like ‘Sorry! Those seats may have been sold out.’</p><p>Basically, even if two aggregators send block requests at nearly the same instant, only one request succeeds. The other receives a failure response, and they update their UI accordingly.</p><h4>Why Redis alone is not enough</h4><p>I have read in many places that Redis is used to block seats, and that is actually only partially true. Redis is excellent for fast, temporary state such as seat holding. However, Redis alone cannot prevent double booking across platforms or offline counters.</p><p>This is where a critical second step comes in. When a user selects seats on an aggregator platform, two things happen almost simultaneously:</p><p>A fast, local block is created in Redis on the aggregator’s side to immediately prevent the same user or another user on that platform from selecting the same seat again.</p><p>A synchronous API call is made to the cinema provider to block the seat at the central repository.</p><p>Only when the provider confirms the block, then the platform proceed with the booking.</p><h4>Analogy</h4><p>A good analogy is a bank account. We may access the money in our bank account through multiple UPI apps like Paytm, GPay, Cred, etc., but there is only one record that tracks the exact bank balance. We cannot withdraw the same money twice because every transaction updates that central record immediately. Cinema seats work the same way.</p><h4>So basically…</h4><p>Even though theaters and their shows appear across many booking platforms, all of them rely on one shared central seat inventory system. Seats are temporarily blocked during the payment, released if payment fails, and permanently sold once payment succeeds.</p><p>This centralized, real-time design ensures fairness, prevents conflicts, and keeps the booking experience smooth, so no matter where we choose to book the ticket.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e891789259b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux free Command: Finding System Memory Usage]]></title>
            <link>https://helloroot.medium.com/linux-free-command-explained-95b2cb8d9dff?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/95b2cb8d9dff</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 07:05:09 GMT</pubDate>
            <atom:updated>2025-12-24T07:05:09.052Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLOuQJ0UNWJKt-Xj1akMJg.png" /></figure><p>Memory is a resource that plays a crucial role in overall Linux system performance. When applications slow down or the system feels unresponsive, RAM usage is on of the first thing needs to be investigated. The free command is one of the simplest and reliable tool for checking how memory is being utilized at any given moment on the system.</p><p>The<em> free</em> command provides an immediate snapshot of physical memory and swap usage directly from the kernel itself, making it ideal for quick diagnostics and routine checks.</p><h3>What Does the free Command Show?</h3><p>The <em>free</em> command displays information about the system’s physical RAM and swap space. It shows how much memory is installed, how much is currently in use, how much is unused, and how much is being used by buffers and cache.</p><p>When the <em>free</em> command is executed without any options, it prints a concise table summarizing memory usage.</p><pre>~$ free</pre><h4>Sample Output of the free Command</h4><p>A typical output from the <em>free</em> command may looks like this:</p><pre>               total        used        free      shared  buff/cache   available<br>Mem:        16054116     4027520     6594976      523608     6298104    12026596<br>Swap:        4194300           0     4194300</pre><p>The output is basically divided into two main sections: one for physical memory (Mem) and one for swap memory (Swap)</p><h4>Memory (Mem) Section</h4><pre>               total        used        free      shared  buff/cache   available<br>Mem:        16054116     4027520     6594976      523608     6298104    12026596</pre><p>The <strong>Mem</strong> row represents physical RAM values. The total column shows the total installed memory available to the system. The used column represents memory currently being used by processes, and the free shows memory that is completely unused.</p><p>The shared column refers to memory shared between processes, commonly used by tmpfs and shared memory segments. The buff/cache column shows memory used by the kernel for disk buffers and file system caching. This memory is not wasted , but it exists to improve performance and reduce disk I/O.</p><p>The one important column in the output is ‘available’. This value estimates how much memory can be allocated to new applications or processes without forcing the system to use swap. It gives a much more accurate picture of usable memory than the free column alone.</p><h4>Swap Memory</h4><pre>               total        used        free      shared  buff/cache   available<br>Swap:        4194300           0     4194300</pre><p>The <strong>Swap</strong> row displays information about swap space available. Swap is disk-based memory used when physical RAM is under pressure. The total value shows configured swap space for the system, used indicates how much swap is currently in use, and free shows the remaining swap capacity.</p><p>Occasional swap usage is normal, especially on long-running systems. However, constant or heavy swap usage often indicates that the system does not have enough RAM for its workload, which can significantly impact the performance.</p><h3>Using Human-Readable Output for free</h3><p>By default, the <em>free</em> command displays values in kilobytes, which can be difficult to interpret. To make the output easier to read, the <em>-h</em> option can be used:</p><pre>~$ free -h<br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       3.9Gi       6.2Gi       499Mi       6.0Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi</pre><p>This displays memory values in more human-readable units such as MB and GB, and is the probably the most commonly used form of the command.</p><h4>free Command Options</h4><p>The <em>free</em> command includes several useful options that allow you to customize its output. Using <strong><em>-m</em></strong> displays memory values in megabytes, while <strong><em>-g</em></strong> displays them in gigabytes. These options are helpful when working with systems that have large amounts of RAM.</p><pre>~$ free -m<br>               total        used        free      shared  buff/cache   available<br>Mem:           15677        3987        6348         518        6195       11690<br>Swap:           4095           0        4095</pre><pre>~$ free -g<br>               total        used        free      shared  buff/cache   available<br>Mem:              15           3           6           0           6          11<br>Swap:              3           0           3</pre><p>The <strong><em>-s</em></strong> option allows free to run continuously at a specified interval. For example, running <em>free -h -s 5</em> will refresh the memory statistics every five seconds until stopped, making it useful for observing memory behavior while starting or stopping services or during any investigations.</p><pre>~$ free -h -s 5<br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       4.0Gi       6.1Gi       539Mi       6.1Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi<br><br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       3.9Gi       6.2Gi       505Mi       6.0Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi<br><br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       3.9Gi       6.2Gi       493Mi       6.0Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi<br><br>^C</pre><p>The <strong><em>-c</em></strong> option allows users to control how many times the output is displayed. This is especially useful when free is used together with the <em>-s</em> option. For example, running <em>free</em> with a refresh interval and a count lets users observe memory changes for a limited period without manually stopping the command.</p><pre>~$ free -h -s 2 -c 3<br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       4.0Gi       6.1Gi       556Mi       6.1Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi<br><br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       3.9Gi       6.1Gi       502Mi       6.0Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi<br><br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       3.9Gi       6.1Gi       501Mi       6.0Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi</pre><p>Another helpful option for <em>free</em> command is <strong><em>-t</em></strong>, which adds a total line combining RAM and swap usage. This can provide a quick overview of total memory consumption across both physical and swap memory.</p><pre>~$ free -t -h<br>               total        used        free      shared  buff/cache   available<br>Mem:            15Gi       3.9Gi       6.2Gi       530Mi       6.1Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi<br>Total:          19Gi       3.9Gi        10Gi</pre><p><strong><em>-w</em></strong> option with <em>free</em> command provides a more detailed breakdown of memory usage by separating buffers and cache into individual columns. This output is helpful to clearly distinguish how much memory is being used for disk buffers versus page cache.</p><pre>~$ free -h -w<br>               total        used        free      shared     buffers       cache   available<br>Mem:            15Gi       4.1Gi       6.0Gi       557Mi       232Mi       5.9Gi        11Gi<br>Swap:          4.0Gi          0B       4.0Gi</pre><p>The <strong><em>-si</em></strong> option with <em>free</em> changes the unit calculation from base-2 (GiB, MiB) to base-10 (GB, MB). This is useful when memory values needs to be matched how storage manufacturers or cloud providers report capacity. This flag makes the output align more closely with decimal-based memory measurements.</p><pre>~$ free -h --si<br>               total        used        free      shared  buff/cache   available<br>Mem:             16G        4.2G        6.6G        557M        6.5G         12G<br>Swap:           4.3G          0B        4.3G</pre><p>The <strong><em>-bytes</em></strong> option forces the <em>free</em> output to be displayed in bytes. While not commonly used for manual inspection, this option can be valuable especially in scripts where precise memory values are required for calculations or alerts.</p><pre>~$ free --bytes<br>               total        used        free      shared  buff/cache   available<br>Mem:     16439414784  4295565312  6537822208   559673344  6516789248 12143849472<br>Swap:     4294963200           0  4294963200</pre><h3>Final Note</h3><p>Along with its wide range of options, the <em>free</em> command is one of the most practical tools for understanding Linux memory behavior. The free command provides essential insight into how Linux manages memory.</p><p>Understanding to use <em>free</em> command and it’s extended options allows users to move beyond surface-level metrics and gain a more accurate view of real memory availability of the system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95b2cb8d9dff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux ‘w’ Command Explained: What It Is and What It Shows]]></title>
            <link>https://helloroot.medium.com/linux-w-command-explained-what-it-is-and-what-it-shows-d74d32a57cd3?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d74d32a57cd3</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[monitoring]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Sun, 30 Nov 2025 07:51:33 GMT</pubDate>
            <atom:updated>2025-12-01T09:27:09.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A93KCjdhT9jyPRb7GqfgjA.png" /></figure><p>The Linux OS provides numerous tools to help administrators monitor the user activity and track performance. One of the most versatile and information-rich tools among them is the <em>w</em> command. The <em>w</em> command displays a summarized view of who is logged in and what processes they are currently executing, along with important system statistics such as uptime and load averages.</p><h3>What Does the w Command Do?</h3><p>The <em>w</em> command gives a real-time overview of the system’s active sessions and resource utilization. It combines user session data with system performance information so that administrators can quickly detect high resource usage, unauthorized access, idle sessions, or unusual command activity.</p><p>When run simply as <em>w</em> in the command line, it produces a detailed output without requiring additional options. The output is divided into two main parts: a system summary header, followed by a table listing detailed session information for each logged-in user.</p><h4>Sample Output of the w Command:</h4><p>Below is an example of typical output from the <em>w </em>command:</p><pre>~$ w<br> 12:45:32 up 10 days,  4:12,  2 users,  load average: 0.23, 0.40, 0.35<br>USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT<br>root     pts/0    192.168.1.10     10:15    2:32   0.01s  0.01s bash<br>elna     pts/1    :0               12:20       3   0.10s  0.02s htop</pre><h3>The Output in Detail</h3><h4>System Summary (Header Section)</h4><p>The first line of the output provides an overall snapshot of the system:</p><pre>12:45:32 up 10 days,  4:12,  2 users,  load average: 0.23, 0.40, 0.35</pre><ul><li><strong>12:45:32</strong>: Current system time</li><li><strong>up 10 days, 4:12</strong>: The system has been running for 10 days and 4 hours since its last reboot</li><li><strong>2 users</strong>: Number of currently logged-in users</li><li><strong>load average: 0.23, 0.40, 0.35</strong>: Average system load over the last 1, 5, and 15 minutes</li></ul><h4>Load Average Interpretation</h4><p>Load average is a critical performance metric that indicates how busy the system CPU resources are. It represents the average number of processes waiting to be executed. In the <em>w</em> command output, the load average is shown in three separate values.</p><p>These three values represent the system load over the last 1 minute, 5 minutes, and 15 minutes respectively. This helps administrators understand whether system load is spiking suddenly, staying consistently high, or returning to normal.</p><p>Load average is an important factor when analyzing slow performance, scheduling tasks, and balancing resource-intensive applications.</p><h4>User Session Table</h4><p>Below the header, the <em>w</em> command shows detailed session data for each logged-in user:</p><pre>USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT<br>root     pts/0    192.168.1.10     10:15    2:32   0.01s  0.01s bash<br>elna     pts/1    :0               12:20       3   0.10s  0.02s htop</pre><ul><li><strong>USER</strong>: Name of the logged-in user</li><li><strong>TTY</strong>: Terminal session type (ttyX for physical consoles, pts/X for SSH or terminal emulators)</li><li><strong>FROM</strong>: Login source (IP address, hostname, or :0 for local) of the user</li><li><strong>LOGIN@</strong>: Login time of the user</li><li><strong>IDLE</strong>: Time user has been inactive</li><li><strong>JCPU</strong>: Total CPU time used by all processes attached to the terminal</li><li><strong>PCPU</strong>: CPU time used by the command listed in <em>WHAT</em></li><li><strong>WHAT</strong>: Current process the user running in the session</li></ul><p>This section is extremely useful for identifying idle sessions, remote login origins, or suspicious commands in real time.</p><h3>The w Command Can be Used:</h3><ul><li>To see who is logged in and from where</li><li>To track what command or process each user is executing</li><li>To detect idle or forgotten sessions</li><li>To verify unexpected remote logins</li><li>To diagnose load or performance issues</li></ul><h4>Related Useful Commands</h4><ul><li><strong>who</strong>: Shows only logged-in users</li><li><strong>users</strong>: Displays usernames only</li><li><strong>uptime</strong>: Shows uptime and load averages</li><li><strong>ps, top, htop</strong>: Process &amp; load monitoring</li></ul><h3>Final Note</h3><p>The w command is one of the most valuable tools for Linux system monitoring, combining user session visibility with live system performance metrics. By understanding the meaning behind each part of its output, administrators can optimize system usage, ensure security, and quickly diagnose performance bottlenecks. w remains a core command every Linux user should learn and use.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d74d32a57cd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ConfigServer’s Shutdown Affects Current CSF (ConfigServer Security & Firewall) Users?]]></title>
            <link>https://helloroot.medium.com/how-configservers-shutdown-affects-current-csf-configserver-security-firewall-users-a526e0958281?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a526e0958281</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[csf]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[config-server]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 08:17:41 GMT</pubDate>
            <atom:updated>2025-09-09T08:17:41.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JBrSJMrxkjw3b4pW-upNmw.png" /></figure><h3>ConfigServer’s Permanent Closure</h3><p>On August 31, 2025, ConfigServer (Way to the Web Ltd.) officially terminated all of its operations, halting support, downloads, licenses, and updates for both its commercial and free software products, including the widely used CSF (ConfigServer Security &amp; Firewall), CXS (ConfigServer eXploit Scanner), MSFE (MailScanner Front-End), CMQ (ConfigServer Mail Queues), CMM (ConfigServer ModSecurity Management), CMC (ConfigServer MailManage), and CSE (ConfigServer Explorer).</p><p>This announcement deeply impacted the hosting ecosystem, particularly providers leveraging tools like cPanel or DirectAdmin. Existing installations would continue functioning, but there would be no future access to downloads or updates, which is indeed a vulnerability all administrators needed to act upon swiftly.</p><h3>CSF is in a coma!</h3><p>While CSF (and LFD) installations running as of August 31 will continue to operate on servers, handling brute-force detection, IP blocking, and alerting, the update mechanism has gone. Attempts to auto-update the application now produce errors like:</p><blockquote>Oops: Unable to download: Can’t connect to download.configserver.com:443 (Connection refused)</blockquote><p>These failures show the abrupt shutdown of official download servers and mirrors. Although the firewall remains operational, it can be defined as a frozen state, which underscores an urgent need for server admins to safeguard their setups or migrate to alternatives.</p><h3>CSF Goes Open Source under GPLv3 (v15.00)</h3><p>Prior to shutdown, ConfigServer released CSF version 15.00 under the GPLv3 license, transitioning it from proprietary software to a freely maintainable, community-owned project. This marks a pivotal point: administrators can now download, install, and even host CSF independently of the original vendor infrastructure. The source code is available on <a href="https://github.com/waytotheweb/scripts">ConfigServer’s GitHub repository</a>, which means we can download and install CSF without the official website.</p><h3>Upgrade to v15.00 to Keep Your Configuration Safe and Secure</h3><p>Migrating to CSF v15.00 requires a manual process that ensures continued firewall stability:</p><ol><li>Backup all your configuration files:</li></ol><blockquote>cp -R /etc/csf /etc/csf.backup</blockquote><blockquote>cp /etc/csf/version.txt /etc/csf/version-backup.txt</blockquote><p>2. Download the CSF v15.00 tarball from GitHub:</p><blockquote>cd /usr/src wget <a href="https://raw.githubusercontent.com/waytotheweb/scripts/refs/heads/main/csf.tgz">https://raw.githubusercontent.com/waytotheweb/scripts/refs/heads/main/csf.tgz</a></blockquote><p>3. Install by extracting and running the installer:</p><blockquote>tar -xzf csf.tgz</blockquote><blockquote>cd csf</blockquote><blockquote>sh install.sh</blockquote><p>4. Verify the update using:</p><blockquote>csf -v</blockquote><ul><li>or by checking <em>/etc/csf/version.txt</em>. This migration generally preserves your already existing rules and configuration, with changes mainly related to licensing and housekeeping.</li></ul><h3>Disable Auto-Updates to Avoid Risk</h3><p>With the official update servers gone, auto-update functionality not only fails but also poses a risk. According to <a href="https://www.whois.com/whois/configserver.com">WHOIS</a>, the configserver.com domain is set to expire on 2027–01–18. The future owners of the obsolete configserver.com domain could serve malicious packages to unwitting servers. To secure your environment:</p><ul><li>Remove any cron jobs associated with CSF updates (e.g., <em>/etc/cron.d/csf_update</em>, <em>/etc/cron.daily/csget</em>).</li><li>Set <strong>AUTO_UPDATES = “0”</strong> in <em>/etc/csf/csf.conf</em>, even though v15.00 disables auto-updates by default.</li></ul><p>This effectively isolates CSF from contacting defunct infrastructure and ensures it remains self-contained.</p><h3>Community Action</h3><p>In response to the shutdown, a proactive response was triggered by the user community. Platforms like configserverfirewall.org emerged, offering a new home for CSF with community support, downloads, documentation, guides, and collaborative development.</p><h3>Final Notes</h3><p>ConfigServer’s closure undeniably disrupted a major portion of the hosting ecosystem. Even though CSF didn’t completely vanish, it transformed to a new level with the release of version 15.00 under the GPLv3 license and the emerging communities. By upgrading to v15.00, disabling unsafe auto-updates, maintaining internal archives, and checking regularly on community platforms, administrators can keep their servers secure well beyond the shutdown date of the firewall.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a526e0958281" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Linux Commands Work? What Happens When You Run a Command in Linux?]]></title>
            <link>https://helloroot.medium.com/how-linux-commands-work-what-happens-when-you-run-a-command-in-linux-26253b693ac9?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/26253b693ac9</guid>
            <category><![CDATA[shell]]></category>
            <category><![CDATA[filesystem]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[linux-commands]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 15:59:25 GMT</pubDate>
            <atom:updated>2025-07-17T12:40:23.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Z73YEJwL6Ch37-i9XyoJw.png" /></figure><p>The command line interface is indeed one of the best and most useful features of the Linux operating system. Most Linux users might have wondered what really happens under the hood when we type a command like ls or pwd in the Linux terminal. Well, it does not work like magic, there’s a systematic and well-orchestrated process that takes place behind the scenes when we type a command in the terminal until we get the desired output from it. There are some key components involved in this, like the shell, kernel, process creation, and more.</p><h3>Step 1: We Type a Command in the Terminal</h3><p>The terminal emulator we use (like GNOME Terminal, Xterm, or iTerm) is just a UI program that connects our keyboard input to a shell and displays the shell’s output. When we type the command and press Enter, the terminal forwards the text input to the shell process running inside it, typically <strong>/bin/bash</strong> or <strong>/usr/bin/zsh</strong>, which is the next component in this process.</p><h3>Step 2: Shell Parses the Command</h3><p>The shell then reads our keyboard input command and breaks it down as command, option, and argument. Let’s say we entered the following command into the terminal:</p><blockquote>ls -l /etc</blockquote><p>Then, the shell breaks it down as:</p><ul><li>ls - the command</li><li>-l - option/flag</li><li>/etc - argument (a directory path in this case)</li></ul><h4>Word Splitting and Expansion</h4><p>During the parsing, the shell performs several steps, such as:</p><ul><li>Variable Expansion: <strong>$HOME</strong> will be parsed to <strong>/home/username</strong></li><li>Wildcard Expansion: <strong>*.txt</strong> expands to all <strong>.txt</strong> files</li><li>Command Substitution: `<strong>date</strong>` gets replaced with the current date</li></ul><p>For example, when we enter the below command:</p><blockquote>echo “Today is: $(date)”</blockquote><p>Output is:</p><blockquote>Today is: Mon Jul 15 22:05:00 IST 2025</blockquote><p>Here, the <strong>$(date)</strong> gets substituted with the current date in this step.</p><h3>Step 3: Shell Locates the Command Binary</h3><p>The shell then needs to find the actual program file (binary) for the command we have given.</p><p>We can run a command-line program from any directory with the help of an environment variable called <strong>PATH</strong>. The <strong>PATH</strong> variable contains a list of directories the shell needs to check before running a command.</p><p>The shell first searches through directories listed in the <strong>PATH</strong> environment variable.</p><p>Check the <strong>PATH</strong> variable:</p><blockquote>echo $PATH</blockquote><p>An unchanged <strong>PATH</strong> variable may look something like this, with each one separated by a colon:</p><blockquote>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</blockquote><p>The shell traverses these directories from left to right when running a program. Once it finds the entered command program in the first available directory, the shell now knows that upon entering the ls command, it needs to run the file <strong>/bin/ls</strong> with arguments <strong>-l /etc</strong>.</p><p>As a user, to find where a command is located, we can use the below command:</p><blockquote>which command_name</blockquote><p>Example:</p><blockquote>which ls</blockquote><p>Output:</p><blockquote>/bin/ls</blockquote><h3>Step 4: Shell Creates a New Process</h3><p>To execute the program, the shell uses a system call called <strong>fork()</strong> to create a new child process.</p><p>The shell forks a child process, which is an exact duplicate of itself. At this point, the Linux kernel assigns a new Process ID (PID) to this child process.</p><p>Then, in the child process, the shell calls <strong>execve()</strong> to replace the current process image with the actual command’s program binary (<strong>/bin/ls</strong> in this case).</p><p>execve() is a system call used to execute a new program, replacing the current process image with a new one.This simply means, the shell in the child process is replaced by the program we want to execute.</p><p>Meanwhile, the initial parent shell process waits while the child process executes the command. That is why we are not able to input anything on the terminal while executing a command.</p><p>This forking step is the point where a new process is created and a new PID is assigned, handled by the kernel.</p><h3>Step 5: Kernel Executes the Program</h3><p>After the <strong>execve()</strong> system call, the Linux kernel takes over to load and execute the specified program binary of the command (e.g., <strong>/bin/ls</strong>).</p><p>The Linux kernel then performs a sequence of operations for execution, using the already assigned PID, such as:</p><ul><li>Loads the binary into memory</li><li>Sets up execution environment (I/O streams, memory layout, permissions)</li><li>Schedules the program to run on the CPU</li></ul><p>This is the point where the actual pre-defined program of the command runs.</p><h3>Step 6: Program Produces Output</h3><p>Once the program is running, it starts executing the command program as instructions defined in its code. Most command-line programs are designed to interact with input and output streams, mainly:</p><ul><li>stdin (standard input) — where the program reads input from (usually the keyboard)</li><li>stdout (standard output) — where the program writes normal output (usually the screen)</li><li>stderr (standard error) — where the program writes error messages (usually the screen)</li></ul><p>The Linux kernel ensures that when a command runs, its output streams are connected to the terminal. That’s why after running the program, we see the output, whether actual result or error, directly on the terminal by printing the stdout or stderr.</p><p>Let’s consider the ls command example:</p><p>The <strong>ls -l /etc</strong> command will then:</p><ul><li>Read the contents of <strong>/etc</strong> directory</li><li>Format them in long-list format (<strong>-l</strong> flag)</li><li>Write output to standard output (stdout)</li></ul><p>As said earlier, since our terminal is connected to stdout, the result is displayed on the terminal.</p><blockquote>-rw-r — r — 1 root root 595 Jun 10 12:01 fstab</blockquote><blockquote>-rw-r — r — 1 root root 91 Jul 22 2024 networks</blockquote><p>If there’s an error due to any reason (e.g., invalid or inexistent directory), it goes to standard error (stderr) and prints:</p><blockquote>ls: cannot access ‘/testdir’: No such file or directory</blockquote><h3>Step 7: Program Exits and Shell Resumes</h3><p>Once the command execution is done, it exits by calling exit(), and control goes back to the shell. Every program returns an exit status:</p><ul><li>0 — Success</li><li>Non-zero — Error</li></ul><p>We can check it using:</p><blockquote>echo $?</blockquote><blockquote>0</blockquote><p>It returns 0 if successful, else a non-zero error code.</p><blockquote>ls /fake/path</blockquote><blockquote>ls: cannot access ‘/fake/path’: No such file or directory</blockquote><blockquote>echo $?</blockquote><blockquote>2</blockquote><h3>Additional Scenarios and Concepts</h3><h4>Built-in vs External Commands</h4><p>In addition to the commands that are so-called pre-defined programmed commands, there are also some commands like cd or echo that are built into the shell; no separate programs are present for these.</p><p>We can check this by using:</p><blockquote>type cd</blockquote><blockquote>cd is a shell builtin</blockquote><p>Shell executes it directly; no fork or exec is required.</p><blockquote>type cat</blockquote><blockquote>cat is /usr/bin/cat</blockquote><h4>Pipes (|)</h4><p>It sends the output of one command to the input of another. Here, the shell sets up multiple processes and connects stdout of one to stdin of the next. It runs both commands as two separate processes.</p><blockquote>ls /etc | grep conf</blockquote><p>This command shows only entries with “<strong>conf</strong>” on the <strong>/etc</strong> directory.</p><h4>Redirection (&gt;, &gt;&gt;, &lt;)</h4><p>This is used to redirect the output of a command to files.</p><blockquote>ls /etc &gt; output.txt</blockquote><p>Here, instead of printing to the screen, it writes the output to a file named <strong>output.txt</strong>.</p><h3>Final Note</h3><p>When we run a Linux command, it is initiating a multi-step process involving all the components of the system, like the terminal, shell, kernel, and the filesystem. It’s an orchestration of system components working together to take our keyboard text input and turn it into the desired output.</p><h4>In Short:</h4><p>Type the command → Shell Parses it → Finds Binary → Sets Up Redirection → Forks Process → Shell Waits → Kernel Executes Program → Output Displayed → Shell Resumes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26253b693ac9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Sensitivity in Linux]]></title>
            <link>https://helloroot.medium.com/case-sensitivity-in-linux-68349a697af3?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/68349a697af3</guid>
            <category><![CDATA[terminal-commands]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[basic-linux-commands]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Tue, 15 Jul 2025 15:05:22 GMT</pubDate>
            <atom:updated>2025-07-15T15:05:22.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8ysHf29jeZ73NfjmVLdQg.png" /></figure><p>One of the most important, and often overlooked aspects of working on Linux is the feature of case sensitivity. Unlike Windows, Linux treats uppercase and lowercase letters as entirely different characters. It is applicable not just in filenames, but also in commands and it’s flags as well.</p><p>This case-sensitive behavior is one of the core parts of Linux and may create confusion for beginners. In this post, We’ll take a look into this topic, with clear examples to understand how case sensitivity in Linux affects commands, options, and file handling.</p><h3>What is Case Sensitivity?</h3><p>Case sensitivity refers to whether uppercase and lowercase letters are treated as distinct characters. In a case-sensitive system, “hello” and “Hello” are considered different, while in a case-insensitive system, they would be treated as the same.</p><p>So, in Linux, <strong>Hello</strong>, <strong>HELLO</strong>, and <strong>hello</strong> are considered three different strings.</p><p>This applies to:</p><ul><li>Commands (ls vs LS)</li><li>Command options (-r vs -R)</li><li>Filenames and directory names</li></ul><p>Linux is built on Unix philosophy, where case matters. So this applies to Linux also, and this strict distinction helps maintain clarity and flexibility in scripting, automation, and system configurations.</p><h3>Case Sensitivity in Commands</h3><p>Linux commands are generally lowercase. Typing a command in uppercase will not work unless an alias or binary exists with that exact uppercase name.</p><p><strong>Example: ls command</strong></p><blockquote>$ ls</blockquote><p>This will work and the output of the command lists directory contents.</p><blockquote>$ LS</blockquote><blockquote>LS: command not found</blockquote><p>Even though <strong>LS</strong> looks like <strong>ls</strong> in spelling, Linux treats them as completely different.</p><p><strong>Another Example: cd vs CD</strong></p><blockquote>$ cd /home/user</blockquote><p>This command will navigate users to the specified directory, /home/user in this case.</p><blockquote>$ CD /home/user</blockquote><blockquote>CD: command not found</blockquote><p>Only lowercase <strong>cd</strong> is valid.</p><h3>Case Sensitivity in Command Options (Flags)</h3><p>Options provided to commands in Linux are also case-sensitive. Changing the case of an option completely changes its behavior. It results in an error if the flag doesn’t exist or results in unintended behavior as both small case and capital case flags may have different uses for the same command.</p><p><strong>Example: grep</strong></p><blockquote>$ grep -i “hello” file.txt</blockquote><p>Here, the <strong>grep</strong> command, applied with the <strong>-i</strong> flag, searches for the word “hello” in a case-insensitive manner. i.e., it matches “Hello”, “HELLO”, etc.</p><blockquote>$ grep -I “hello” file.txt</blockquote><p>In this scenario, the <strong>-I</strong> flag tells <strong>grep</strong> to treat binary files as if they do not contain matching data (used for ignoring binaries, not case).</p><p>In short:</p><ul><li>-i = ignore case</li><li>-I = ignore binary files</li></ul><p>This simple demonstration of the case-sensitive commands completely shows different behavior, even for the same command.</p><p><strong>Another Example: tar</strong></p><blockquote>$ tar -xvf archive.tar</blockquote><ul><li>x = extract</li><li>v = verbose</li><li>f = file</li></ul><blockquote>$ tar -Xvf archive.tar</blockquote><ul><li>X = exclude files listed in a file</li></ul><p>Will fail or do something different if the file doesn’t exist.</p><p><strong>Example: ps</strong></p><blockquote>$ ps -e</blockquote><p>This command displays the list of all running processes on the system.</p><blockquote>$ ps -E</blockquote><p>But here, with the <strong>-E</strong> flag, it displays environment variables along with processes. Simply, <strong>-e</strong> and <strong>-E</strong> flags are not the same when used with the commands.</p><h3><strong>Case Sensitivity in File and Directory Names</strong></h3><p>Linux file systems (like ext4) are also case-sensitive by default.</p><p><strong>Example: File Names</strong></p><blockquote>$ touch Test.txt</blockquote><p>Now, if you try below command to open the created file:</p><blockquote>$ cat test.txt</blockquote><blockquote>cat: test.txt: No such file or directory</blockquote><p>This is just because ‘<strong>Test</strong>’ and ‘<strong>test</strong>’ are not the same. If you have created a file ‘<strong>Test</strong>’, you cannot concatenate and display file contents of that file using ‘<strong>test</strong>’ as filename.</p><p>You can even create files with similar names but different cases:</p><blockquote>$ touch File.txt FILE.txt file.TXT</blockquote><blockquote>$ ls</blockquote><blockquote>File.txt FILE.txt file.TXT</blockquote><p>All of the above, ‘<strong>File.txt</strong>’, ‘<strong>FILE.txt</strong>’, ‘<strong>file.TXT</strong>’ are different files.</p><h3><strong>Case Sensitivity in Scripts</strong></h3><p>Case sensitivity also applies when you are writing shell scripts in Linux. For variable names, function names, or command calls, Linux scripting follows the same rules, that is uppercase ≠ lowercase.</p><h4><strong>Variables Are Case-Sensitive</strong></h4><p>In Bash and most shell environments, variables are case-sensitive. You must use exact casing when referencing them elsewhere in the script.</p><p><strong>Example:</strong></p><blockquote>#!/bin/bash</blockquote><blockquote>name=”John”</blockquote><blockquote>Name=”Doe”</blockquote><blockquote>echo $name # Output: John</blockquote><blockquote>echo $Name # Output: Doe</blockquote><p>Even though the variable names look similar, name and Name are treated as different variables.</p><h4><strong>Function Names Are Case-Sensitive</strong></h4><p>Functions defined in the scripts also obey the case rules.</p><p><strong>Example:</strong></p><blockquote>#!/bin/bash</blockquote><blockquote>hello() {</blockquote><blockquote>echo “Hello from lowercase function”</blockquote><blockquote>}</blockquote><blockquote>Hello() {</blockquote><blockquote>echo “Hello from uppercase function”</blockquote><blockquote>}</blockquote><blockquote>hello # Output: Hello from lowercase function</blockquote><blockquote>Hello # Output: Hello from uppercase function</blockquote><p>Here, hello and Hello are two entirely different functions, obeying case sensitivity. Calling or naming one does not affect the other.</p><h4><strong>Calling Commands Inside Scripts</strong></h4><p>Just like in the terminal, commands inside scripts also must be written in correct lowercase.</p><blockquote>#!/bin/bash</blockquote><blockquote>Ls # Will give: ‘Ls: command not found’</blockquote><blockquote>ls # Works perfectly</blockquote><p>Unless you’ve defined a command or alias named <strong>Ls</strong>, this will fail. Also, case sensitivity of flags is also applied here.</p><h4><strong>File and Path References</strong></h4><p>Scripts often are written to read or write files. Referencing a file with incorrect casing will result in an error.</p><p><strong>Example:</strong></p><blockquote>#!/bin/bash</blockquote><blockquote>touch mydata.txt</blockquote><blockquote>cat MyData.txt # cat: MyData.txt: No such file or directory</blockquote><blockquote>cat mydata.txt # Works</blockquote><p>We need to always double-check the cases of file names and paths when automating tasks in scripts.</p><h4><strong>Case-Sensitive Conditional Checks</strong></h4><p>Even conditionals that compare strings in the shell scripts are case-sensitive by default.</p><blockquote>#!/bin/bash</blockquote><blockquote>input=”Yes”</blockquote><blockquote>if [ “$input” = “yes” ]; then</blockquote><blockquote>echo “Input is yes”</blockquote><blockquote>else</blockquote><blockquote>echo “Input is NOT yes”</blockquote><blockquote>fi</blockquote><blockquote># Output: Input is NOT yes</blockquote><p>We can use ,, to convert to lowercase before comparison:</p><blockquote>if [ “${input,,}” = “yes” ]; then</blockquote><blockquote>echo “Input is yes”</blockquote><blockquote>fi</blockquote><p><strong>Final Note<br></strong> Understanding case sensitivity in Linux is critical, especially for scripting, automation, and daily operations. Linux treats commands, options, and file names case-sensitively. Every user needs to make sure they always use the correct case for commands and flags.</p><p><strong>Tip</strong>: Use <strong><em>man command_name</em></strong> to see the official manual of commands and distinguish between different options (including all available uppercase vs lowercase flags).</p><blockquote>man ls</blockquote><p>Also, it’s a better practice to use the tab completion feature to reduce filename case typos.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68349a697af3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Rolls Out New Way to Manage Email Subscriptions and Declutter Your Gmail Inbox]]></title>
            <link>https://helloroot.medium.com/google-rolls-out-new-way-to-manage-email-subscriptions-and-declutter-your-gmail-inbox-b3023f1a6eb4?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3023f1a6eb4</guid>
            <category><![CDATA[newsletter]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[gmail]]></category>
            <category><![CDATA[subscriptions-management]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Wed, 09 Jul 2025 14:43:51 GMT</pubDate>
            <atom:updated>2025-07-09T14:43:51.760Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WvmpO2y5RkKg_aNcfirTNA.png" /></figure><p>Many of us often find it annoying when subscription emails, promotional messages, and newsletters flood our Gmail inbox. Most of these arrive because we unknowingly subscribe while signing up on various websites, and many of them end up being of no use. Manually finding and unsubscribing from each sender can be extremely frustrating.</p><p>Google has now introduced a new feature called “Manage Subscriptions”, which allows users to view and manage all active mailing lists and newsletter subscriptions from a single page. This eliminates the need to unsubscribe from each sender individually as their emails arrive.</p><p>You can find this new option at the bottom of the navigation bar in the top-left corner of your inbox by selecting “Manage subscriptions.” Your active subscriptions are displayed, sorted by the most frequent senders, along with the number of emails they’ve sent in recent weeks. If there’s a sender you no longer wish to hear from, you can unsubscribe with just one click. Gmail will then send an unsubscribe request to the sender on your behalf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PhwkmUfELOZxqxr6okyYCQ.gif" /><figcaption>Source: <a href="https://blog.google/products/gmail/new-manage-subscriptions-unsubscribe/">Google Blog</a></figcaption></figure><p>Before unsubscribing, you can also review all previous messages from a particular sender. If you decide not to receive future emails, you can either unsubscribe or block the sender. Google notes that it may take a few days for the unsubscribe request to be processed, during which time you may still receive their emails. Blocking a sender doesn’t unsubscribe you from their mailing list, but it simply sends future emails from that address directly to your Spam folder.</p><p>Google says the feature is rolling out first on the web, with Android and iOS users beginning to receive it on July 14 and July 21, respectively. The rollout may take up to 15 days to reach all users. This feature is available to all Google Workspace customers, Workspace Individual subscribers, as well as users with personal Google accounts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3023f1a6eb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT is testing the new ‘Study Together’ mode.]]></title>
            <link>https://helloroot.medium.com/chatgpt-is-testing-the-new-study-together-mode-d091f862ce4b?source=rss-16c5973ccca4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d091f862ce4b</guid>
            <category><![CDATA[chatgpt-prompt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[socratic-method]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Hello Root]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 18:42:53 GMT</pubDate>
            <atom:updated>2025-07-08T18:42:53.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNV_O4D2KlSV2x7tu2LzKw.png" /></figure><p>Several ChatGPT Plus subscribers have reported on social media platforms like Reddit and X that they have received access to a new feature called ‘Study Together’.</p><p>As reported by the users, the new option is available in the tools dropdown menu, named “Study Together.” While OpenAI hasn’t officially announced this feature yet, early impressions from the community offer some insight into what it might be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*99UotxjCwbaZTQFEN0YGGA.jpeg" /><figcaption>Source: <a href="https://x.com/kosuke_agos/status/1941937343503778268">X Post</a> by <a href="https://x.com/kosuke_agos">@kosuke_agos</a></figcaption></figure><p>From the users’ opinions, it seems the feature works in a way such that it breaks down larger concepts into smaller topics, and then asks questions and teaches you.</p><p>This is similar to Google’s LearnLM, an AI model focused on teaching, rather than just responding to user prompts. LearnLM emphasizes education-first interaction, aiming to build knowledge step-by-step rather than offering a direct answer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VP7Lo38tNiGlHcKeDrM4FA.jpeg" /><figcaption>Source: <a href="https://x.com/RayLin_AI/status/1941926800059453510">X Post</a> by <a href="https://x.com/RayLin_AI">@RayLin_AI</a></figcaption></figure><p>The tool appears to use the Socratic method, where the teacher helps a student learn something by asking them questions and directing them towards the proper answer. This can essentially turn ChatGPT into a learning companion for the users.</p><p>Interestingly, ChatGPT can ‘teach’ users in a similar way even now, if the user prompts it correctly to teach them using the Socratic method. The above-mentioned under-development feature will likely make it easier and streamline the process.</p><p>It seems to be a test of an upcoming feature. However, the feature is not reportedly available for all Plus users, and no further details about the feature are known for now. OpenAI has also not made any announcement about this new feature.</p><p>If this model rolls out and becomes successful, I think it could redefine how we approach self-study using AI tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d091f862ce4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>