<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on Ravindra Devrani</title><link>https://ravindradevrani.com/tags/linux/</link><description>Recent content in Linux on Ravindra Devrani</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 27 Mar 2025 19:52:00 +0530</lastBuildDate><atom:link href="https://ravindradevrani.com/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux Basic Commands</title><link>https://ravindradevrani.com/posts/linux-basic-commands/</link><pubDate>Thu, 27 Mar 2025 19:52:00 +0530</pubDate><guid>https://ravindradevrani.com/posts/linux-basic-commands/</guid><description>&lt;ol>
&lt;li>Contents of a file: &lt;code>ls&lt;/code>&lt;/li>
&lt;li>Content list with long format: &lt;code>ls -l&lt;/code> or &lt;code>ls -l -h&lt;/code> human readable or concat the both &lt;code>ls -lh&lt;/code>.&lt;/li>
&lt;li>Change directory: &lt;code>cd DirectoryName&lt;/code>&lt;/li>
&lt;li>Move to the upper directory: &lt;code>cd ..&lt;/code>&lt;/li>
&lt;li>Switch to previous directory : &lt;code>cd -&lt;/code>&lt;/li>
&lt;li>Change to home directory: &lt;code>cd ~&lt;/code>&lt;/li>
&lt;li>Go to full path: &lt;code>cd /Home/Documents/Pitctures/MyPictures&lt;/code>&lt;/li>
&lt;li>Tilde (~) for home directory : &lt;code>MyPc:~/Documents$ cd ~/Videos&lt;/code>&lt;/li>
&lt;li>Clear screen: &lt;code>clear&lt;/code>&lt;/li>
&lt;li>Show different drives in the computer (List block devices): &lt;code>lsblk&lt;/code>&lt;/li>
&lt;li>Opening a file in the text editor :&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># open in nano&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>nano filename
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#open in xed editor&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>xed filename
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="12">
&lt;li>Root directory: &lt;code>cd /&lt;/code>&lt;/li>
&lt;li>Press &lt;code>Tab&lt;/code> to autocomlete.&lt;/li>
&lt;li>Create a directory : &lt;code>mkdir blah&lt;/code>&lt;/li>
&lt;li>Remove a directory : &lt;code>rmdir blah&lt;/code>&lt;/li>
&lt;li>Creating a blank file : &lt;code>touch something.txt&lt;/code>
14.1. Creating multiple files at once: &lt;code>touch f1.txt f2.txt f3.txt f4.md f5.md&lt;/code>&lt;/li>
&lt;li>Printing something in terminal : &lt;code>echo hello&lt;/code>&lt;/li>
&lt;li>Create a file with text: &lt;code>echo &amp;quot;blah blah&amp;quot; &amp;gt; blah.txt&lt;/code>&lt;/li>
&lt;li>Show contents of a file: &lt;code>cat blah.txt&lt;/code>&lt;/li>
&lt;li>Copy file : &lt;code>cp /source/filename.ext destination/filename.ext&lt;/code>&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># note: I am currently in the `Desktop` directory&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># copy `blah.txt` from `Desktop` to `Documents` directory&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cp blah.txt ~/Documents/blah2.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># copy `blah.txt` from `Desktop` to `Documents` directory with changed filename&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>cp blah.txt ~/Documents/blah2.txt 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># it will copy `blah.txt from `Desktop` to `Documents` directory with changed file name `blah2.txt`&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ol start="19">
&lt;li>
&lt;p>Copy all files (&lt;em>.&lt;/em> allfiles.allextensions): &lt;code>cp *.* ~/Documents&lt;/code>&lt;/p></description></item><item><title>How to Install DotNet SDK In Ubuntu Based Distros?</title><link>https://ravindradevrani.com/posts/how-to-install-dotnet-sdk-in-ubuntu-based-distros/</link><pubDate>Wed, 26 Mar 2025 19:59:22 +0530</pubDate><guid>https://ravindradevrani.com/posts/how-to-install-dotnet-sdk-in-ubuntu-based-distros/</guid><description>&lt;h2 id="my-distro">My Distro&lt;/h2>
&lt;p>I am using &lt;code>linux mint 22.1&lt;/code> which is based on &lt;code>Ubuntu 24.04&lt;/code>.&lt;/p>
&lt;h2 id="straightforeward-command">Straightforeward command&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo apt-get update
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo apt-get install -y dotnet-sdk-10.0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="but">But&amp;hellip;&lt;/h2>
&lt;p>I have tried to run this command &lt;code>sudo apt-get install -y dotnet-sdk-10.0&lt;/code> but unfortunately I got no success. I have found that, this command works only with &lt;code>Ubuntu 24.10&lt;/code>. For &lt;code>Ubuntu 24.04&lt;/code> I need to use different approach.&lt;/p>
&lt;h2 id="uninstall-prior-version-if-exists">Uninstall prior version if exists&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>sudo apt-get remove dotnet-sdk-9.0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Now, run these commands in a sequence:&lt;/p></description></item></channel></rss>