<?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>Forem: mio_sushi_mio</title>
    <description>The latest articles on Forem by mio_sushi_mio (@mio_sushi_mio).</description>
    <link>https://forem.com/mio_sushi_mio</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%2F3880043%2Fa121c988-be57-433f-a265-bd155c2e7068.jpeg</url>
      <title>Forem: mio_sushi_mio</title>
      <link>https://forem.com/mio_sushi_mio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mio_sushi_mio"/>
    <language>en</language>
    <item>
      <title>10 Handy Linux Terminal Tricks Every Beginner Should Know</title>
      <dc:creator>mio_sushi_mio</dc:creator>
      <pubDate>Wed, 15 Apr 2026 09:02:17 +0000</pubDate>
      <link>https://forem.com/mio_sushi_mio/10-handy-linux-terminal-tricks-every-beginner-should-know-2cga</link>
      <guid>https://forem.com/mio_sushi_mio/10-handy-linux-terminal-tricks-every-beginner-should-know-2cga</guid>
      <description>&lt;h1&gt;
  
  
  10 Handy Linux Terminal Tricks Every Beginner Should Know
&lt;/h1&gt;

&lt;p&gt;Hi, I'm Mio! 👋&lt;/p&gt;

&lt;p&gt;You've learned the basic commands — now let's make your terminal life a little more enjoyable.&lt;br&gt;
Here are 10 small but powerful tricks I use all the time.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. &lt;code&gt;!!&lt;/code&gt; — Re-run the Previous Command
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;ls&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="o"&gt;!!&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Repeats the exact command you just ran. Simple, but surprisingly handy.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. &lt;code&gt;!ls&lt;/code&gt; — Recall a Past Command by Name
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;ls&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Runs the most recent &lt;code&gt;ls&lt;/code&gt; command from your history — no need to scroll through &lt;code&gt;history&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. &lt;code&gt;history | grep&lt;/code&gt; — Search Your Command History
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;history&lt;/span&gt; | &lt;span class="nb"&gt;grep &lt;/span&gt;ssh
  53  ssh user@192.168.0.10
 104  ssh user@example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Can't remember a command you ran last week? Pipe &lt;code&gt;history&lt;/code&gt; into &lt;code&gt;grep&lt;/code&gt; and find it instantly.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. &lt;code&gt;alias&lt;/code&gt; — Create Your Own Shortcuts
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;alias &lt;/span&gt;&lt;span class="nv"&gt;ll&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'ls -la'&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;ll
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tired of typing long commands? Create an alias. Add it to &lt;code&gt;~/.bashrc&lt;/code&gt; to make it permanent.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Tab Completion — Let the Terminal Type for You
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;Doc&amp;lt;Tab&amp;gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;Documents/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press &lt;code&gt;Tab&lt;/code&gt; to auto-complete file and directory names. Fewer typos, faster workflow.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. &lt;code&gt;Ctrl+A&lt;/code&gt; and &lt;code&gt;Ctrl+E&lt;/code&gt; — Jump to Start or End of Line
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Ctrl+A&lt;/code&gt; → move to the &lt;strong&gt;beginning&lt;/strong&gt; of the line&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Ctrl+E&lt;/code&gt; → move to the &lt;strong&gt;end&lt;/strong&gt; of the line&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A lifesaver when editing long commands.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. &lt;code&gt;Ctrl+C&lt;/code&gt; and &lt;code&gt;Ctrl+Z&lt;/code&gt; — Stop or Pause a Process
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Ctrl+C&lt;/code&gt; → force quit a running process&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Ctrl+Z&lt;/code&gt; → suspend it (bring it back with &lt;code&gt;fg&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  8. &lt;code&gt;&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt;, &lt;code&gt;2&amp;gt;&lt;/code&gt; — Redirect Output
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; out.txt            &lt;span class="c"&gt;# overwrite&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; out.txt           &lt;span class="c"&gt;# append&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;ls &lt;/span&gt;notfound 2&amp;gt; err.txt  &lt;span class="c"&gt;# redirect error output&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Great for saving logs or separating errors from normal output.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. &lt;code&gt;| less&lt;/code&gt; — Read Long Output One Page at a Time
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;dmesg | less
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When output overflows your screen, pipe it into &lt;code&gt;less&lt;/code&gt;. Press &lt;code&gt;q&lt;/code&gt; to quit.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. &lt;code&gt;clear&lt;/code&gt; vs &lt;code&gt;reset&lt;/code&gt; — Clean Up Your Terminal
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;clear&lt;/code&gt; → visually clears the screen (history stays)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reset&lt;/code&gt; → fully reinitializes the terminal (useful when things look broken)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Bonus: &lt;code&gt;Ctrl+R&lt;/code&gt; — Reverse Search Your History
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;(&lt;/span&gt;reverse-i-search&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;ssh&lt;span class="s1"&gt;': ssh user@example.com
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press &lt;code&gt;Ctrl+R&lt;/code&gt; and start typing — it instantly finds matching commands from your history.&lt;br&gt;
This is probably the most underrated shortcut in the terminal.&lt;/p&gt;




&lt;h2&gt;
  
  
  Quick Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trick&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!!&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Re-run last command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!cmd&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Re-run last &lt;code&gt;cmd&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;`history \&lt;/td&gt;
&lt;td&gt;grep`&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;alias&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Create shortcuts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tab&lt;/td&gt;
&lt;td&gt;Auto-complete&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Ctrl+A&lt;/code&gt; / &lt;code&gt;Ctrl+E&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Jump to line start/end&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Ctrl+C&lt;/code&gt; / &lt;code&gt;Ctrl+Z&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Stop / suspend process&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;&amp;gt;&lt;/code&gt; &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; &lt;code&gt;2&amp;gt;&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Redirect output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;`\&lt;/td&gt;
&lt;td&gt;less`&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;clear&lt;/code&gt; / &lt;code&gt;reset&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Clean up terminal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Ctrl+R&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reverse history search&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You don't need to memorize all of these at once.&lt;br&gt;
Try one, feel the "oh, that's useful!" moment — and it's yours. ✨&lt;/p&gt;




&lt;p&gt;💡 &lt;strong&gt;Want to practice these right now?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://penguin-gym-linux.com/en/" rel="noopener noreferrer"&gt;Penguin Gym Linux&lt;/a&gt;&lt;/strong&gt; is a free, browser-based Linux terminal where you can run real commands without installing anything.&lt;br&gt;
No setup. Just open and start typing. 🐧&lt;/p&gt;

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