<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">By "directory entries", it just means entries in the directory being listed. The "-a" option should show everything that starts with a dot, both files and directories. You do not only list directories that begin with a dot.</div> <br> <div id="bloop_sign_1444984019291731968" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">--&nbsp;<br>Tyler Romeo</div><div style="font-family:helvetica,arial;font-size:13px">Stevens Institute of Technology Class of 2016</div><div style="font-family:helvetica,arial;font-size:13px">Major in Computer Science</div></div> <div class="airmail_ext_on" style="color:black"><br>From:&nbsp;<span style="color:black">Shicong Huang</span> <a href="mailto:shuang14@stevens.edu">&lt;shuang14@stevens.edu&gt;</a><br>Reply:&nbsp;<span style="color:black">Shicong Huang</span> <a href="mailto:shuang14@stevens.edu">&lt;shuang14@stevens.edu&gt;</a><br>Date:&nbsp;<span style="color:black">October 16, 2015 at 01:21:28</span><br>To:&nbsp;<span style="color:black">cs631apue@lists.stevens.edu</span> <a href="mailto:cs631apue@lists.stevens.edu">&lt;cs631apue@lists.stevens.edu&gt;</a><br>Subject:&nbsp;<span style="color:black"> [cs631apue] Question about -a option <br></span></div><br> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div dir="ltr">Hi,
<div><br></div>
<div>I met a question when I tried to implement -a option. In the
instruction, -a shall include directory</div>
<div>entries whose names begin with a dot. If I am not wrong, I
still need to ignore file entries whose&nbsp;</div>
<div>names begin with a dot. So, consider this case:</div>
<div><br></div>
<div>ls -a /foo/bar/</div>
<div><br></div>
<div>foo's access permission: drwxrwxrwx</div>
<div>bar's access permission: drw-rw-rw-</div>
<div><br></div>
<div>Since I have "r" permission of bar, I can read all sub entries
of it. But I don't have any</div>
<div>"x" permission of bar, that means I can't stat(2) its sub
entries. So, how do I know a sub</div>
<div>entry is a directory?</div>
<div><br></div>
<div><br></div>
<div>Thanks!</div>
<div><br></div>
<div>Shicong Huang</div>
</div>


_______________________________________________
<br>cs631apue mailing list
<br>cs631apue@lists.stevens.edu
<br>https://lists.stevens.edu/mailman/listinfo/cs631apue
<br></div></div></span></blockquote></body></html>