<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: 10 Lesser Known Linux Commands That Are Super Useful	</title>
	<atom:link href="https://www.tecmint.com/hidden-linux-commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/hidden-linux-commands/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Wed, 14 Jan 2026 02:30:36 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: atomick		</title>
		<link>https://www.tecmint.com/hidden-linux-commands/comment-page-1/#comment-2378935</link>

		<dc:creator><![CDATA[atomick]]></dc:creator>
		<pubDate>Wed, 14 Jan 2026 02:30:36 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=60002#comment-2378935</guid>

					<description><![CDATA[Another method for adding line numbers to a file has been around since early UNIX and continues to work reliably today across both UNIX and Linux platforms. This utility consistently delivers excellent results throughout the *Nix ecosystem.

Try the following examples:
&lt;pre&gt;
cat -n simpleText.txt
&lt;/pre&gt;
This will display and number the lines of &lt;code&gt;simpleText.txt&lt;/code&gt; (or any &lt;strong&gt;ASCII&lt;/strong&gt; text file).
&lt;pre&gt;
cat -n simpleText.txt &#062;&#062; simpleText-numbered.txt
&lt;/pre&gt;
This demonstrates usage by example and produces a hard-copy output that you can work with later.

Now try opening a shell terminal and experimenting on your own:
&lt;pre&gt;
cat -n .bashrc &#062; Bashrc.numbered
more -e Bashrc.numbered
&lt;/pre&gt;
This may provide ideas for extending the usefulness of this approach. Linux offers many different ways to accomplish the same task.

&lt;strong&gt;Note&lt;/strong&gt;: a single redirection is usually sufficient. For example:
&lt;pre&gt;
cat -n .bash* &#062;&#062; BashAll
more -e BashAll
&lt;/pre&gt;
What happens here is that the output now contains a numbered listing of all files beginning with &lt;code&gt;.bash&lt;/code&gt;, such as:
&lt;pre&gt;
.bashrc
.bash_profile
.bash_logout
.bash_aliases
&lt;/pre&gt;
assuming these files are located in your home directory. Together, they help form the complete Bash environment.

Enjoy.]]></description>
			<content:encoded><![CDATA[<p>Another method for adding line numbers to a file has been around since early UNIX and continues to work reliably today across both UNIX and Linux platforms. This utility consistently delivers excellent results throughout the *Nix ecosystem.</p>
<p>Try the following examples:</p>
<pre>
cat -n simpleText.txt
</pre>
<p>This will display and number the lines of <code>simpleText.txt</code> (or any <strong>ASCII</strong> text file).</p>
<pre>
cat -n simpleText.txt &gt;&gt; simpleText-numbered.txt
</pre>
<p>This demonstrates usage by example and produces a hard-copy output that you can work with later.</p>
<p>Now try opening a shell terminal and experimenting on your own:</p>
<pre>
cat -n .bashrc &gt; Bashrc.numbered
more -e Bashrc.numbered
</pre>
<p>This may provide ideas for extending the usefulness of this approach. Linux offers many different ways to accomplish the same task.</p>
<p><strong>Note</strong>: a single redirection is usually sufficient. For example:</p>
<pre>
cat -n .bash* &gt;&gt; BashAll
more -e BashAll
</pre>
<p>What happens here is that the output now contains a numbered listing of all files beginning with <code>.bash</code>, such as:</p>
<pre>
.bashrc
.bash_profile
.bash_logout
.bash_aliases
</pre>
<p>assuming these files are located in your home directory. Together, they help form the complete Bash environment.</p>
<p>Enjoy.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mehdi		</title>
		<link>https://www.tecmint.com/hidden-linux-commands/comment-page-1/#comment-2298153</link>

		<dc:creator><![CDATA[mehdi]]></dc:creator>
		<pubDate>Sat, 19 Apr 2025 06:15:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=60002#comment-2298153</guid>

					<description><![CDATA[first time seeing `nl` and I tought it `ln`, like it :))]]></description>
			<content:encoded><![CDATA[<p>first time seeing `nl` and I tought it `ln`, like it :))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/hidden-linux-commands/comment-page-1/#comment-2291953</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Fri, 04 Apr 2025 07:33:45 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=60002#comment-2291953</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/hidden-linux-commands/comment-page-1/#comment-2291780&quot;&gt;Kunal Ghosh&lt;/a&gt;.

@Kunal,

Thank you so much for your kind words - I&#039;m really glad you found the article helpful!

To compare two text files and highlight the differences, you can use the &lt;code&gt;diff&lt;/code&gt; command in Linux, which is a powerful tool that shows line-by-line changes between two files.
&lt;pre&gt;
diff file1.txt file2.txt
&lt;/pre&gt;
If you prefer a more readable and colorized output, you can try:
&lt;pre&gt;
diff --color file1.txt file2.txt
&lt;/pre&gt;
Or use vimdiff for a side-by-side comparison:
&lt;pre&gt;
vimdiff file1.txt file2.txt
&lt;/pre&gt;
If you&#039;re looking for a GUI tool, &lt;a href=&quot;https://www.tecmint.com/compare-find-difference-between-two-directories-in-linux/&quot; title=&quot;meld Tool&quot; target=&quot;_blank&quot; rel=&quot;noopener ugc&quot;&gt;meld&lt;/a&gt; is great too.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/hidden-linux-commands/comment-page-1/#comment-2291780">Kunal Ghosh</a>.</p>
<p>@Kunal,</p>
<p>Thank you so much for your kind words &#8211; I&#8217;m really glad you found the article helpful!</p>
<p>To compare two text files and highlight the differences, you can use the <code>diff</code> command in Linux, which is a powerful tool that shows line-by-line changes between two files.</p>
<pre>
diff file1.txt file2.txt
</pre>
<p>If you prefer a more readable and colorized output, you can try:</p>
<pre>
diff --color file1.txt file2.txt
</pre>
<p>Or use vimdiff for a side-by-side comparison:</p>
<pre>
vimdiff file1.txt file2.txt
</pre>
<p>If you&#8217;re looking for a GUI tool, <a target="_blank" href="https://www.tecmint.com/compare-find-difference-between-two-directories-in-linux/" title="meld Tool" target="_blank" rel="noopener ugc">meld</a> is great too.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kunal Ghosh		</title>
		<link>https://www.tecmint.com/hidden-linux-commands/comment-page-1/#comment-2291780</link>

		<dc:creator><![CDATA[Kunal Ghosh]]></dc:creator>
		<pubDate>Thu, 03 Apr 2025 16:57:14 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=60002#comment-2291780</guid>

					<description><![CDATA[Hi, 

Your article was very informative, and will be very useful to me. I have been looking for a means of comparing two text files and highlighting the differences between them. 

Can you help?]]></description>
			<content:encoded><![CDATA[<p>Hi, </p>
<p>Your article was very informative, and will be very useful to me. I have been looking for a means of comparing two text files and highlighting the differences between them. </p>
<p>Can you help?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
