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*

8
  • Thanks It works! I have another question how to find the file in sub-directory without /tmp Commented Jun 4, 2015 at 11:50
  • 2
    Please open a separate question for this. Commented Jun 4, 2015 at 12:16
  • 3
    Note that this won't list hidden file. Commented Jun 4, 2015 at 18:00
  • 4
    Use ls -d to avoid expansion of any directory matching /tmp/???? Commented Jun 4, 2015 at 21:06
  • 2
    @user913 if simple globbing does the same job, find is overkill. nothing wrong with it otherwise Commented Jun 8, 2015 at 20:46