<?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: Ankit Mahajan</title>
    <description>The latest articles on DEV Community by Ankit Mahajan (@ankitma72507083).</description>
    <link>https://dev.to/ankitma72507083</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%2F729348%2F278ee127-5a2c-4d2a-b5d0-0b1a313d3d6d.jpg</url>
      <title>DEV Community: Ankit Mahajan</title>
      <link>https://dev.to/ankitma72507083</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ankitma72507083"/>
    <language>en</language>
    <item>
      <title>Linux History Commands</title>
      <dc:creator>Ankit Mahajan</dc:creator>
      <pubDate>Fri, 29 Oct 2021 08:19:31 +0000</pubDate>
      <link>https://dev.to/ankitma72507083/linux-history-commands-2274</link>
      <guid>https://dev.to/ankitma72507083/linux-history-commands-2274</guid>
      <description>&lt;p&gt;Hello Folks 👋 , Ankit here so now let's have a quick look at the most used and favourite command among linux users i.e the history command.&lt;/p&gt;

&lt;p&gt;In your shell, there is a history of the commands that you previously entered, you can actually look through these commands. This is quite useful when you want to find and run a command you used previously without actually typing it again.&lt;/p&gt;

&lt;p&gt;$ &lt;strong&gt;history&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some Shortcut tricks and Wow factors of history Command&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;↑&lt;/strong&gt; ---&amp;gt; we can also use the upper arrow key to run the previous commands&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;!!&lt;/strong&gt; ---&amp;gt; if you want to run the command that you used earlier without writing the whole command you can just type in this &lt;strong&gt;!!&lt;/strong&gt;&lt;br&gt;
and it will run the last command you ran .&lt;/p&gt;

&lt;p&gt;Next in the list is ctrl - R &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ctrl - R&lt;/strong&gt; ---&amp;gt; this is the reverse search command . so how it works is simple you have to press ctrl r and then you can write some parts of the command for e.g :- you write ls and then you pressed ctrl - R again so what it will do is it will show you the matches and you can just navigate through them by pressing ctrl -r again&lt;br&gt;
and if you find a suitable match for the command for e.g :- ls -a&lt;br&gt;
you can press the enter key to use it again &lt;/p&gt;

&lt;p&gt;our terminal is getting a little cluttered so to clear up the display we can use the below command 👇👇👇&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;clear&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;So now if we are talking about so much useful features of the linux without tab completion how can my article be completed 😅😅&lt;br&gt;
The most useful feature in any command-line environment is our all time-favourite  😁😁&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tab-Completion&lt;/strong&gt; ---&amp;gt; So how it works is if you type chr or firef and then press tab it will autocomplete the command like if u typed chr it will autocomplete the command with chrome &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OQ8RQ-84--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/90gks7nlbofox7t7xzpv.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OQ8RQ-84--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/90gks7nlbofox7t7xzpv.gif" alt="Image description" width="480" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So that was all from my side . Have a great day ahead  ✌✌&lt;/p&gt;

</description>
      <category>linux</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
