title: Linux: find command performance issue
body: <p>I need the list of files in some directory and so I am using this command to find files on linux machine:</p>
  
  <pre><code>find /some_directory -depth -maxdepth 1 -mindepth 1 -exec basename {} \;
  </code></pre>
  
  <p>But it is taking a lot of time (~ 35 mins) as there are more than 200k files. Can this be optimized or is there a better alternative?</p>