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*

3
  • This also lists the contents of hidden directories, which isn't what the question asks for (probably — it is a little ambiguous). Commented Aug 7, 2011 at 19:53
  • @Gilles: indeed it is ambiguous. Edited the answer Commented Aug 7, 2011 at 20:00
  • Note that the first one is not GNU-specific. -path is POSIX since 2008. -ls is not standard but quite common. Commented Aug 25, 2015 at 13:34