title: How to exclude folders and directory path from find command
body: <p>I've got the following command </p>
  
  <pre><code>find /tmp/sjohal/archivetest &gt; list
  </code></pre>
  
  <p>However I need the output to show the filenames in the folder without the directory path.</p>
  
  <p>What is the best way to do this?</p>
  
  <p>My current output looks as follows:</p>
  
  <pre><code>/tmp/sjohal/archivetest
  /tmp/sjohal/archivetest/test2
  /tmp/sjohal/archivetest/test1
  /tmp/sjohal/archivetest/test3
  /tmp/sjohal/archivetest/list.txt
  </code></pre>
  
  <p>I only require the output to show the files:</p>
  
  <pre><code>test2
  test1
  test3
  </code></pre>