Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    Your output does not provide this information. Must this be done with ls? Do you want to know the first level of subdirectories only? How shall symlinks (within / outside the subdirectory; dangling ones) be handled? Commented Nov 11, 2014 at 20:20
  • unfortunately this is all i am given. its an assignment and im trying to figure out how to find the answer and the answer itself so that i know for the future. Commented Nov 11, 2014 at 20:25