<?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>DEV Community: PRUTHVIRAJ SONAWANE</title>
    <description>The latest articles on DEV Community by PRUTHVIRAJ SONAWANE (@cryptdecoder).</description>
    <link>https://dev.to/cryptdecoder</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%2F517799%2F9b907513-970e-474a-9260-8db0d54b5b36.png</url>
      <title>DEV Community: PRUTHVIRAJ SONAWANE</title>
      <link>https://dev.to/cryptdecoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cryptdecoder"/>
    <language>en</language>
    <item>
      <title>Useful Linux Command Line Tricks and commands </title>
      <dc:creator>PRUTHVIRAJ SONAWANE</dc:creator>
      <pubDate>Tue, 15 Dec 2020 14:59:00 +0000</pubDate>
      <link>https://dev.to/cryptdecoder/useful-linux-command-line-tricks-and-commands-2ofj</link>
      <guid>https://dev.to/cryptdecoder/useful-linux-command-line-tricks-and-commands-2ofj</guid>
      <description>&lt;p&gt;When I first started using Linux and, I was using Ubuntu with Graphical User Interface, Using&lt;br&gt;
GUI I see Linux same as windows OS. but when I jump to the use of the Linux terminal, I truly hated the Linux&lt;br&gt;
Terminal, because there is no option to click on icons and use them. and remembering the all&lt;br&gt;
required commands and proper use is hard. With the practice, I realized the flexibility and&lt;br&gt;
usability of command. Today, I would like to share some useful tricks and commands with you&lt;/p&gt;
&lt;h2&gt;
  
  
  Show the previous command or execute them
&lt;/h2&gt;

&lt;p&gt;Most of the time you will need to execute previous commands again and again, while you can&lt;br&gt;
press the Up-Down arrow keys to find relevant command instead of using arrow keys us history&lt;br&gt;
command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# history
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you will see the last executed commands with numbers, so we just need to execute the&lt;br&gt;
command with the given number&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;!#
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;for example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;!1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Where # should be replaced with the actual number of common that we want to execute.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Show the Information of Users
&lt;/h2&gt;

&lt;p&gt;many times we need to check the available users on the server/system using the following&lt;br&gt;
a simple command we can get the basic details of all available users.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# lslogins
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Copy Console/Terminal Output into the text file
&lt;/h2&gt;

&lt;p&gt;Some time while executing some command it generates a long trail of output in that case we can&lt;br&gt;
copy all generated output on terminal store into the text files. even using the tee command we&lt;br&gt;
can store the operational output into the files.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# tee [options] ... [file]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;for example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# sudo apt update | tee update.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  SSH to the remote Servers
&lt;/h2&gt;

&lt;p&gt;While working on the different servers the SSH performs a major role in the IT department. I&lt;br&gt;
would share the simplest way to configure SSH and login to the Server using SSH. follow the&lt;br&gt;
following steps. &lt;/p&gt;

&lt;p&gt;Step 1: Generate the Key&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# ssh-keygen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 2: Copy the Key to the Server&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# ssh-copy-id username@Server-IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step 3: login from the Client to Server&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# ssh username@Server-IP
OR
ssh -l username server-IP
OR
ssh username@Server-IP -p port
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The -p port option for if ssh is not configured on default (22) port.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Rollback Updates and Patches
&lt;/h2&gt;

&lt;p&gt;As the working of a System administrator or use of Linux in Daily uses we have to update the&lt;br&gt;
Linux and some packages. But sometimes the updated packages have compatibility issues, so&lt;br&gt;
in that case, we need to downgrade the package version on downgrade the update, I would&lt;br&gt;
share the following steps to roll back the updates and patches.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rollback the Package
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Install a Package or Patches
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# yum install git
validate the installed git version
# git --version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Check the Yum package history
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# yum history
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Rollback the install package
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# yum history undo &amp;lt;ID&amp;gt;
example
# yum history undo 2
the package will be removed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Rollback the Updates&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install a Package or Patches
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# yum update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Check the yum History
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# yum history
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Rollback the Updates
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# yum history undo &amp;lt;ID&amp;gt;
# yum history undo 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is all about some useful Linux tricks and commands, We can find more useful resources for&lt;br&gt;
Linux. We can say Linux is all about Knowledge hub, we find more, you learn more !!!&lt;/p&gt;

</description>
      <category>linux</category>
      <category>devops</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Programming C == Computer</title>
      <dc:creator>PRUTHVIRAJ SONAWANE</dc:creator>
      <pubDate>Fri, 20 Nov 2020 11:51:11 +0000</pubDate>
      <link>https://dev.to/cryptdecoder/programming-c-computer-5332</link>
      <guid>https://dev.to/cryptdecoder/programming-c-computer-5332</guid>
      <description>&lt;p&gt;This is my First Dev. to blog on C programming and my Nontech background to DevOps Engineer journey&lt;br&gt;
When I started my computer science diploma in the year 2013, I don't idea programming and computer too much I had completed only a basic computer course where I learn only the use of paint and playing the game pinball.&lt;br&gt;
after completion of my 12th in science background, I took admission to Computer Diploma. and what happens my journey start towards the Computer world. &lt;br&gt;
Ok, my first programming subject was C Programming. in the first attempt, I was failed in C.&lt;br&gt;
because I don't have an idea of how it works. so one of my teachers gives me the basic idea of c.&lt;br&gt;
I passed the exam with good marks. But in mind, I always had dought why C is too hard, and Why C is important to become Computer Engineer, &lt;br&gt;
And in the end, I find the answer-&amp;gt;&lt;br&gt;
   When you start learning computer science we heard too many concepts like networking, hardware, CPU, Memory, etc&lt;br&gt;
C programming is one of the programmings where most of the theories related to the computer are explained and working on that. for example Memory, related work is explained using pointer where most of the students are stuck on the pointer concept.&lt;/p&gt;

&lt;p&gt;There is a lot of benefits to learning C programming. some of the application of c programming&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Operating Systems&lt;/li&gt;
&lt;li&gt;Embedded Systems&lt;/li&gt;
&lt;li&gt;Development of New Languages&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Many more.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
