<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged man</title>
<link>https://coderlegion.com/tag/man</link>
<description>Powered by Question2Answer</description>
<item>
<title>Attention Is All You Need - Part 6</title>
<link>https://coderlegion.com/18994/attention-is-all-you-need-part-6</link>
<description>
&lt;p&gt;Hello, I'm Ganesh. I'm building &lt;em&gt;git-lrc&lt;/em&gt;, an AI code reviewer that runs on every commit. It is free, unlimited, and source-available on Github. &lt;a href=&quot;https://github.com/HexmosTech/git-lrc&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;Star Us&lt;/a&gt; to help devs discover the project. Do give it a try and share your feedback for improving the product.&lt;/p&gt;

&lt;p&gt;In previous article we discussed about why traditional RNN model didn't work for long sentences.&lt;/p&gt;

&lt;p&gt;In this article we will discuss about, how single attention head works?&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Single Attention Head is not enough?
&lt;/h2&gt;

&lt;p&gt;In single attention head, context of word is maintained and relates word/ token to each other.&lt;/p&gt;

&lt;p&gt;But this also comes with a limitation of contextual understanding.&lt;/p&gt;

&lt;p&gt;For Example:&lt;/p&gt;

&lt;p&gt;If the sentence had multiple meanings, single attention head will focus on one.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class=&quot;highlight js-code-highlight&quot;&gt;
&lt;pre class=&quot;highlight plaintext&quot;&gt;&lt;code&gt;In 5 Coach long train, in first coach the man was sleeping in 2nd coach the man was standing in 3rd coach the man was playing and in 4th coach the man was eating food.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, for contextual understanding of &lt;code&gt;man&lt;/code&gt; in above example needed and that is where single attention head fails.&lt;/p&gt;

&lt;p&gt;To Solve this, multi head attention is introduced.&lt;/p&gt;

&lt;h2&gt;
  
  
  Multi Attention Head
&lt;/h2&gt;

&lt;p&gt;Multi Attention Head works parallelly and independently. So, it captures contextual understanding of word/ token.&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wk0koo8gt3x8yvc8ejd.png&quot; class=&quot;article-body-image-wrapper&quot;&gt;&lt;img src=&quot;https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wk0koo8gt3x8yvc8ejd.png&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What next?
&lt;/h2&gt;

&lt;p&gt;Finaly we got some idea on what end all happening under this.&lt;/p&gt;

&lt;p&gt;I just want to hold upcomming exploration.&lt;/p&gt;

&lt;p&gt;Just by getting into surface level I learned many things. But detailing i couldn't learn.&lt;/p&gt;

&lt;p&gt;I think by 2 weeks I will explore those field and share my learning.&lt;/p&gt;

&lt;p&gt;Reference: &lt;a href=&quot;https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/HexmosTech/git-lrc&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;&lt;img src=&quot;https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fabn6nl3iehrohehnxgje.png&quot; alt=&quot;git-lrc&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any feedback or contributors are welcome! It&amp;rsquo;s online, source-available, and ready for anyone to use. &lt;br&gt;
&amp;#11088; Star it on GitHub: &lt;a href=&quot;https://github.com/HexmosTech/git-lrc&quot; rel=&quot;noopener noreferrer nofollow&quot;&gt;https://github.com/HexmosTech/git-lrc&lt;/a&gt;&lt;/p&gt;


</description>
<category>Other</category>
<guid isPermaLink="true">https://coderlegion.com/18994/attention-is-all-you-need-part-6</guid>
<pubDate>Mon, 01 Jun 2026 09:29:27 +0000</pubDate>
</item>
<item>
<title>MAN is Man’s Best Friend!</title>
<link>https://coderlegion.com/1553/man-is-mans-best-friend</link>
<description>
&lt;p&gt;If there&amp;rsquo;s one command that deserves the title of &lt;em&gt;man&amp;rsquo;s best friend&lt;/em&gt; in Linux, it&amp;rsquo;s &lt;strong&gt;&lt;code&gt;man&lt;/code&gt;&lt;/strong&gt;. The &lt;strong&gt;manual (man) pages&lt;/strong&gt; are your ultimate guide to mastering Linux, unlocking the secrets of the terminal, and supercharging your productivity. Whether you&amp;rsquo;re a beginner or an experienced user, the &lt;code&gt;man&lt;/code&gt; command is an indispensable tool in your Linux journey.&lt;/p&gt;
&lt;h2&gt;1. &lt;strong&gt;What is the &lt;code&gt;man&lt;/code&gt; Command?&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;man&lt;/code&gt; command (short for &amp;ldquo;manual&amp;rdquo;) is your go-to resource for understanding Linux commands. Instead of scouring the web for documentation, simply type:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;man &amp;lt;command&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;man ls
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This brings up the detailed manual for &lt;code&gt;ls&lt;/code&gt;, explaining its usage, options, and flags. It&amp;rsquo;s like having an encyclopedia of Linux right at your fingertips.&lt;/p&gt;
&lt;h2&gt;2. &lt;strong&gt;Why &lt;code&gt;man&lt;/code&gt; is Your Best Friend&lt;/strong&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;Comprehensive Documentation&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;man&lt;/code&gt; command provides official documentation written by experts. Unlike random online guides, man pages offer precise, up-to-date information about every command available on your system.&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Discover Hidden Features&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Many Linux commands have powerful yet lesser-known options. By exploring the man pages, you can uncover flags and functionalities that streamline your workflow. For instance:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;man grep
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;reveals advanced pattern-matching techniques that can transform the way you search text.&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Boost Terminal Productivity&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Instead of switching between a browser and the terminal, stay in the command line and find answers instantly. The more you use &lt;code&gt;man&lt;/code&gt;, the more self-sufficient you become, making you a terminal power user.&lt;/p&gt;
&lt;h2&gt;3. &lt;strong&gt;How to Read a Man Page Efficiently&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Man pages can seem overwhelming at first, but understanding their structure makes navigation easy:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;NAME&lt;/strong&gt; &amp;ndash; A brief description of the command.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SYNOPSIS&lt;/strong&gt; &amp;ndash; Shows how to use the command.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DESCRIPTION&lt;/strong&gt; &amp;ndash; Detailed explanation of what the command does.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;OPTIONS&lt;/strong&gt; &amp;ndash; Lists available flags and their effects.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;EXAMPLES&lt;/strong&gt; &amp;ndash; (If available) Demonstrates practical usage.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SEE ALSO&lt;/strong&gt; &amp;ndash; Related commands that might be useful.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Navigate a man page using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;j/k&lt;/code&gt; &amp;ndash; Scroll through the document.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/search-term&lt;/code&gt; &amp;ndash; Find a keyword.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;q&lt;/code&gt; &amp;ndash; Quit the man page.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;4. &lt;strong&gt;Advanced &lt;code&gt;man&lt;/code&gt; Usage&lt;/strong&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;Find Commands by Keyword&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Not sure which command to use? Try:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;man -k &amp;lt;keyword&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;man -k process
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will list all commands related to &amp;ldquo;process.&amp;rdquo;&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Read Sections of a Command&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Some commands have multiple meanings (e.g., &lt;code&gt;printf&lt;/code&gt; as a shell command vs. a C function). The manual is divided into sections:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;1&lt;/strong&gt; &amp;ndash; User commands&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;2&lt;/strong&gt; &amp;ndash; System calls&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;3&lt;/strong&gt; &amp;ndash; Library functions&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;5&lt;/strong&gt; &amp;ndash; File formats&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;8&lt;/strong&gt; &amp;ndash; System administration commands&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To access a specific section, run:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-sh&quot;&gt;man 3 printf
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;5. &lt;strong&gt;Man Pages: Your Gateway to Linux Mastery&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Learning Linux is all about &lt;strong&gt;self-sufficiency&lt;/strong&gt;, and &lt;code&gt;man&lt;/code&gt; empowers you to explore, experiment, and understand commands without external dependencies. By mastering man pages, you&amp;rsquo;ll:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reduce reliance on online searches.&lt;/li&gt;
&lt;li&gt;Discover new features and optimizations.&lt;/li&gt;
&lt;li&gt;Increase efficiency by staying within the terminal.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;strong&gt;Challenge Yourself:&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;For the next week, try using &lt;code&gt;man&lt;/code&gt; before Googling any Linux command. You&amp;rsquo;ll be surprised at how much you learn!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;May your terminal adventures be ever productive, and may &lt;code&gt;man&lt;/code&gt; always guide your way! ????&amp;#10024;&lt;/em&gt;&lt;/p&gt;

</description>
<category>Other</category>
<guid isPermaLink="true">https://coderlegion.com/1553/man-is-mans-best-friend</guid>
<pubDate>Sat, 22 Mar 2025 05:28:53 +0000</pubDate>
</item>
</channel>
</rss>