<?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: 7 Quirky &#8216;ls&#8217; Command Tricks Every Linux User Should Know	</title>
	<atom:link href="https://www.tecmint.com/linux-ls-command-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/linux-ls-command-tricks/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 23:15:21 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: dragonmouth		</title>
		<link>https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1590289</link>

		<dc:creator><![CDATA[dragonmouth]]></dc:creator>
		<pubDate>Thu, 16 Sep 2021 20:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12112#comment-1590289</guid>

					<description><![CDATA[You do not provide a screenshot of &lt;code&gt;&quot;ls --format=vertical&quot;&lt;/code&gt;.  There is a screenshot of every other command.]]></description>
			<content:encoded><![CDATA[<p>You do not provide a screenshot of <code>"ls --format=vertical"</code>.  There is a screenshot of every other command.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Manuel Malagon		</title>
		<link>https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1515822</link>

		<dc:creator><![CDATA[Manuel Malagon]]></dc:creator>
		<pubDate>Fri, 04 Jun 2021 12:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12112#comment-1515822</guid>

					<description><![CDATA[Is it possible to sort by extension then alphabetically? In other words, sort alphabetically by extension.?]]></description>
			<content:encoded><![CDATA[<p>Is it possible to sort by extension then alphabetically? In other words, sort alphabetically by extension.?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Darren Evans		</title>
		<link>https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1505100</link>

		<dc:creator><![CDATA[Darren Evans]]></dc:creator>
		<pubDate>Wed, 26 May 2021 06:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12112#comment-1505100</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1501269&quot;&gt;paolo&lt;/a&gt;.

In Bash shell doing
&lt;pre&gt;
ls a(1).jpg
&lt;/pre&gt;
results in the error message
&lt;pre&gt;
bash: syntax error near unexpected token `(&#039;
&lt;/pre&gt;
In Bash and tcsh (and most other shells), parentheses have to be escaped or enclosed in quotes.  Wildcards must not be enclosed in quotes or they will not be expanded by the shell.

So for filenames containing parentheses eg a(1).jpg b(1).jpg, this ls command will work
&lt;pre&gt;
ls *&quot;(1).jpg&quot;
&lt;/pre&gt;
or if you prefer to have the quotes just around the critical part
&lt;pre&gt;
ls *&quot;(1)&quot;.jpg
&lt;/pre&gt;
If you files names contained quotes (double or single), then you would have to escape the quotes themselves to list them.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1501269">paolo</a>.</p>
<p>In Bash shell doing</p>
<pre>
ls a(1).jpg
</pre>
<p>results in the error message</p>
<pre>
bash: syntax error near unexpected token `('
</pre>
<p>In Bash and tcsh (and most other shells), parentheses have to be escaped or enclosed in quotes.  Wildcards must not be enclosed in quotes or they will not be expanded by the shell.</p>
<p>So for filenames containing parentheses eg a(1).jpg b(1).jpg, this ls command will work</p>
<pre>
ls *"(1).jpg"
</pre>
<p>or if you prefer to have the quotes just around the critical part</p>
<pre>
ls *"(1)".jpg
</pre>
<p>If you files names contained quotes (double or single), then you would have to escape the quotes themselves to list them.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Darren Evans		</title>
		<link>https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1505054</link>

		<dc:creator><![CDATA[Darren Evans]]></dc:creator>
		<pubDate>Wed, 26 May 2021 06:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12112#comment-1505054</guid>

					<description><![CDATA[The different file/directory/link/socket etc indicator styles are only seen with the -F option.

The &lt;code&gt;-p&lt;/code&gt; option only appends a slash to the name of directories. 

One of my preferred options is &lt;strong&gt;--group-directories-first&lt;/strong&gt; which does exactly what it says.]]></description>
			<content:encoded><![CDATA[<p>The different file/directory/link/socket etc indicator styles are only seen with the -F option.</p>
<p>The <code>-p</code> option only appends a slash to the name of directories. </p>
<p>One of my preferred options is <strong>&#8211;group-directories-first</strong> which does exactly what it says.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Duncan		</title>
		<link>https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-1502697</link>

		<dc:creator><![CDATA[Duncan]]></dc:creator>
		<pubDate>Tue, 25 May 2021 16:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12112#comment-1502697</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-894561&quot;&gt;Brian Eschner&lt;/a&gt;.

I&#039;m guessing that it&#039;s any change of the terminal window size, not just going full-screen. That will reset a bunch of spacing-related stuff, obviously including the terminal tabs set.

I&#039;d suggest setting the bash &lt;strong&gt;PROMPT_COMMAND&lt;/strong&gt; (or possibly one of PS0/PS1/PS2) environmental variable to include your desired tabs command so it&#039;s run automatically at each prompt.  See the bash manpage or info pages for the details.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/linux-ls-command-tricks/comment-page-1/#comment-894561">Brian Eschner</a>.</p>
<p>I&#8217;m guessing that it&#8217;s any change of the terminal window size, not just going full-screen. That will reset a bunch of spacing-related stuff, obviously including the terminal tabs set.</p>
<p>I&#8217;d suggest setting the bash <strong>PROMPT_COMMAND</strong> (or possibly one of PS0/PS1/PS2) environmental variable to include your desired tabs command so it&#8217;s run automatically at each prompt.  See the bash manpage or info pages for the details.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
