<?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"><channel><title><![CDATA[Hrithik Roy]]></title><description><![CDATA[Hrithik Roy]]></description><link>https://devhrithik.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 23:16:45 GMT</lastBuildDate><atom:link href="https://devhrithik.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Getting Hands Dirty On Linux]]></title><description><![CDATA[Demystify the powerful world of Linux! This beginner-friendly guide, on Hashnode, equips you with the foundational knowledge to navigate the Linux OS]]></description><link>https://devhrithik.hashnode.dev/getting-hands-dirty-on-linux</link><guid isPermaLink="true">https://devhrithik.hashnode.dev/getting-hands-dirty-on-linux</guid><category><![CDATA[Linux]]></category><category><![CDATA[linux for beginners]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[Beginner Developers]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Bash]]></category><category><![CDATA[coding]]></category><category><![CDATA[CNCF]]></category><category><![CDATA[cncflandscape]]></category><dc:creator><![CDATA[Hrithik Roy]]></dc:creator><pubDate>Sun, 03 Mar 2024 20:11:28 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1709462253505/0bb0127c-063a-4689-ad8f-55dd6da1983a.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-introduction">Introduction</h2>
<p>Have you ever wondered what goes behind the scenes of your computer? Or maybe you heard about an open-source customizable operating system called Linux? If so, then you have come to the right place!</p>
<p>Linux isn't only for tech nerds and servers! it's a versatile operating system powering everything from smartphones to web servers. Also, the fun part is that Linux is completely free and open-source, meaning anyone can contribute to it and customize it to their needs.</p>
<h2 id="heading-navigating-the-linux-landscape">Navigating the Linux Landscape</h2>
<p>The world of Linux offers a variety of choices! Unlike a single operating system, it has different flavours called distribution (distros). These distros are made for different use cases some focusing on user-friendliness like <strong>Ubuntu</strong> and other power and customization like <strong>Arch Linux</strong> and some on security and strong encryption like <strong>Kali Linux</strong>.</p>
<p>Most used Linux distros currently in the IT industry:</p>
<p><strong>RPM-based</strong>: RHEL &amp; Centos</p>
<p><strong>Debian-based</strong>: Ubuntu</p>
<h2 id="heading-getting-comfortable-with-the-terminal">Getting Comfortable with the Terminal</h2>
<p>As developers, we should be comfortable with the terminal and use the terminal more and more. Imagine the terminal as a friend who understands specific instructions.</p>
<p>Terminal is a text-based interface that can be used for navigating through the computer, managing files, running commands, and more.</p>
<p>Let's get familiar with some basic navigation commands:</p>
<p><code>pwd</code> : Print Working Directory(shows your current location)</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709465159035/52bc1ac3-0625-4d95-b840-804b267b2704.png" alt class="image--center mx-auto" /></p>
<p><code>ls</code> : List files and folders in the current directory</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709465286860/59dcf575-ba12-4e13-acbf-53061d742be6.png" alt class="image--center mx-auto" /></p>
<p><code>cd</code> : Change Directory (move between folders)</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709465562963/30ca110d-1ec3-40ea-b8a1-c30c1eec92a3.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-file-and-directory-management">File and Directory Management</h2>
<p>Before diving into File and Directory Management we should get an understanding of <strong>Path.</strong> A path is a unique location of a file or a folder in a file system of an OS. A path to a file is a combination of / and alpha-numeric characters.</p>
<ul>
<li><p><strong>Absolute Path:</strong> An absolute path is defined as specifying the location of a file or directory from the root directory(/). In other words, we can say an absolute path is a complete path from the start of the actual filesystem from the / directory.</p>
</li>
<li><p><strong>Relative Path:</strong> A relative path is defined as a path related to the present working directory(pwd). Suppose I am located in /home/hrithik and I want to change the directory to /home/hrithik/Linux. I can use the relative path concept to change the directory to Linux.</p>
</li>
</ul>
<p><strong>Let's dive into the File and Directory Management Commands</strong>:</p>
<p><code>mkdir</code><strong>: to create a directory</strong></p>
<ul>
<li>created directories using <strong>absolute and relative path</strong></li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709488644816/df1a74b0-914c-4120-8145-f16a63905957.png" alt class="image--center mx-auto" /></p>
<p><code>cp</code><strong>: to copy files</strong></p>
<ul>
<li>Copying files into directory</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709496353553/5d50a7d5-ba34-4f5f-a487-fc2f317c80a4.png" alt class="image--center mx-auto" /></p>
<p><code>mv</code><strong>: to move files and directories</strong></p>
<ul>
<li>Moving files from one location to another</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709489481754/b2e5d1c0-ba05-488c-9ddd-5d15ceed3a24.png" alt class="image--center mx-auto" /></p>
<p><code>rm</code><strong>: to remove files and directories</strong></p>
<ul>
<li>Removing files and directories</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1709489753865/d1562a12-aa59-40b8-a577-f1c64853efde.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-some-more-useful-commands">Some more useful commands</h2>
<ul>
<li><p><code>touch</code><strong>: Create a new empty file or update the access and modification times of a file.</strong></p>
<pre><code class="lang-bash">  touch file.txt
</code></pre>
</li>
<li><p><code>cat</code> : <strong>Concatenate and display files.</strong></p>
<pre><code class="lang-bash">  cat file.text
</code></pre>
</li>
<li><p><code>head</code><strong>: Display the first lines of a file.</strong></p>
<pre><code class="lang-bash">  head file.txt
</code></pre>
</li>
<li><p><code>tail</code><strong>: Display the last lines of a file.</strong></p>
<pre><code class="lang-bash">  tail file.txt
</code></pre>
</li>
<li><p><code>grep</code><strong>: Search for patterns in files.</strong></p>
<pre><code class="lang-bash">  grep pattern file.txt
</code></pre>
</li>
</ul>
<p><code>man</code><strong>: Manual pages (detailed information on commands)</strong></p>
<h2 id="heading-conclusion">Conclusion</h2>
<p>I am ending this blog about Linux here, but this should not be the end of your learning journey with Linux. Linux is a vast landscape, and I have just helped you get started. So, embrace the learning process and don't be afraid to experiment. Also, leverage the wealth of online resources available</p>
<p>Some of my favourite resources for learning Linux :</p>
<ul>
<li><p>I<a target="_blank" href="https://youtu.be/iwolPf6kN-k?si=XpPb7Fut6fuO6dsj">ntroduction to Linux &amp; Terminal Commands - Full Course for Beginners</a> by Kunal Kushwaha</p>
</li>
<li><p><a target="_blank" href="https://www.youtube.com/watch?v=nRpmRDm-QrQ&amp;list=PL2kSRH_DmWVZp_cu6MMPWkgYh7GZVFS6i&amp;pp=iAQB"><strong>Linux Masterclass Course - A Complete Tutorial From Beginner To</strong></a> <strong>Advanced by Apporv Goyal</strong></p>
</li>
<li><p><a target="_blank" href="https://youtu.be/sWbUDq4S6Y8?si=27LjuQAeats9hpYU">Introduction to Linux - Full Course for Beginners</a> by freecodecamp</p>
</li>
</ul>
]]></content:encoded></item></channel></rss>