<?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: 15 Interview Questions on Linux &#8220;ls&#8221; Command &#8211; Part 1	</title>
	<atom:link href="https://www.tecmint.com/ls-command-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/ls-command-interview-questions/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 30 Sep 2021 00:02:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Manuel Jordan		</title>
		<link>https://www.tecmint.com/ls-command-interview-questions/comment-page-1/#comment-1598564</link>

		<dc:creator><![CDATA[Manuel Jordan]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 00:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9013#comment-1598564</guid>

					<description><![CDATA[Thanks for this tutorial

About `&lt;strong&gt;ls -d&lt;/strong&gt;`, when is mandatory or useful? it only returns &lt;code&gt;&quot;.&quot;&lt;/code&gt; at a first glance has no sense, could you update the answer to question #14? Thanks in advance]]></description>
			<content:encoded><![CDATA[<p>Thanks for this tutorial</p>
<p>About `<strong>ls -d</strong>`, when is mandatory or useful? it only returns <code>"."</code> at a first glance has no sense, could you update the answer to question #14? Thanks in advance</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Phil		</title>
		<link>https://www.tecmint.com/ls-command-interview-questions/comment-page-1/#comment-1311994</link>

		<dc:creator><![CDATA[Phil]]></dc:creator>
		<pubDate>Wed, 15 Jan 2020 15:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9013#comment-1311994</guid>

					<description><![CDATA[Excuse me? What is the point of these interview questions, please? What position would I be hiring for and ask myself – &quot;has this candidate memorized all possible options of the ls command?&quot;. These are great questions for the geek pub quiz but not job interviews...]]></description>
			<content:encoded><![CDATA[<p>Excuse me? What is the point of these interview questions, please? What position would I be hiring for and ask myself – &#8220;has this candidate memorized all possible options of the ls command?&#8221;. These are great questions for the geek pub quiz but not job interviews&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rohit Dhyani		</title>
		<link>https://www.tecmint.com/ls-command-interview-questions/comment-page-1/#comment-1146069</link>

		<dc:creator><![CDATA[Rohit Dhyani]]></dc:creator>
		<pubDate>Sun, 05 May 2019 19:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9013#comment-1146069</guid>

					<description><![CDATA[Under Linux what simple thing can I do to make a file not appear in a standard ls directory listing]]></description>
			<content:encoded><![CDATA[<p>Under Linux what simple thing can I do to make a file not appear in a standard ls directory listing</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: naresh		</title>
		<link>https://www.tecmint.com/ls-command-interview-questions/comment-page-1/#comment-1100299</link>

		<dc:creator><![CDATA[naresh]]></dc:creator>
		<pubDate>Sun, 10 Feb 2019 18:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9013#comment-1100299</guid>

					<description><![CDATA[Super awesome interview questions and answers on Linux Commands.]]></description>
			<content:encoded><![CDATA[<p>Super awesome interview questions and answers on Linux Commands.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joseph in Atlanta		</title>
		<link>https://www.tecmint.com/ls-command-interview-questions/comment-page-1/#comment-819474</link>

		<dc:creator><![CDATA[Joseph in Atlanta]]></dc:creator>
		<pubDate>Tue, 20 Sep 2016 05:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=9013#comment-819474</guid>

					<description><![CDATA[In-correct bit of information: on Question #5, the 2nd bullet point says that &quot;Number ‘5‘ represents Symbolic Link.&quot;

(a) The numeric field(2) between permission &#038; file owner is the LINK_COUNT, but only includes direct/hard links.

(b) Symbolic links do NOT change/increment the link count for a regular file or directory.

(c) Unix/Linux allows the same exact file to have multiple names. 
&lt;ol&gt;
&lt;li&gt;These are not copies of file, but exact same file can be called red and blue at the same time,&lt;/li&gt; 
&lt;li&gt;and both names will be listed in directory &#039;ls&#039; listing... the names can be in different DIRs also.&lt;/li&gt;
&lt;/ol&gt;
(d) Link_Count shows count for &quot;How Many simultaneous hard-link Names does this File HAVE?&quot;
&lt;ol&gt;
&lt;li&gt;You can also have &quot;Symbolic or &#039;soft&#039; links; but those are re-direction pointers and not counted the same.&quot;&lt;/li&gt;
&lt;/ol&gt;
(e) Rule: You are NOT allowed to add hard-links (extra names) for a Directory... just normal files and programs.

(f)  For a DIR, both the &quot;dir-name&quot; in parent dir, and the &quot;.&quot; dot-name in child dir are part of Link_Count, 
&lt;ol&gt;
&lt;li&gt;so Dirs have Link-Count 2 when created... All &quot;normal files&quot; have a Link_Count of 1 when created.&lt;/li&gt;
&lt;/ol&gt;
(e)  Link count on Dirs goes UP as sub-dirs are created, since &quot;..&quot; entry in sub-dirs is a link pointing to parent dir.

(f)  So... if you see a DIR with Link_Count above 2, you can subtract 2, and know number of child sub-dirs

(g) Thus, in Question#2 above, the Link_Count=5 means that dir &quot;Binary&quot; contains three sub-dirs.
&lt;ol&gt;
&lt;li&gt;but the Link_Count does not tell you if there are Symbolic_Links, as noted in the example answer.&lt;/li&gt;
&lt;/ol&gt;]]></description>
			<content:encoded><![CDATA[<p>In-correct bit of information: on Question #5, the 2nd bullet point says that &#8220;Number ‘5‘ represents Symbolic Link.&#8221;</p>
<p>(a) The numeric field(2) between permission &amp; file owner is the LINK_COUNT, but only includes direct/hard links.</p>
<p>(b) Symbolic links do NOT change/increment the link count for a regular file or directory.</p>
<p>(c) Unix/Linux allows the same exact file to have multiple names. </p>
<ol>
<li>These are not copies of file, but exact same file can be called red and blue at the same time,</li>
<li>and both names will be listed in directory &#8216;ls&#8217; listing&#8230; the names can be in different DIRs also.</li>
</ol>
<p>(d) Link_Count shows count for &#8220;How Many simultaneous hard-link Names does this File HAVE?&#8221;</p>
<ol>
<li>You can also have &#8220;Symbolic or &#8216;soft&#8217; links; but those are re-direction pointers and not counted the same.&#8221;</li>
</ol>
<p>(e) Rule: You are NOT allowed to add hard-links (extra names) for a Directory&#8230; just normal files and programs.</p>
<p>(f)  For a DIR, both the &#8220;dir-name&#8221; in parent dir, and the &#8220;.&#8221; dot-name in child dir are part of Link_Count, </p>
<ol>
<li>so Dirs have Link-Count 2 when created&#8230; All &#8220;normal files&#8221; have a Link_Count of 1 when created.</li>
</ol>
<p>(e)  Link count on Dirs goes UP as sub-dirs are created, since &#8220;..&#8221; entry in sub-dirs is a link pointing to parent dir.</p>
<p>(f)  So&#8230; if you see a DIR with Link_Count above 2, you can subtract 2, and know number of child sub-dirs</p>
<p>(g) Thus, in Question#2 above, the Link_Count=5 means that dir &#8220;Binary&#8221; contains three sub-dirs.</p>
<ol>
<li>but the Link_Count does not tell you if there are Symbolic_Links, as noted in the example answer.</li>
</ol>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
