title: Take the last part of the folder path in shell
body: <p>If you type pwd you get something like:</p>
  
  <p><code>/home/username/Desctop/myfolder/</code></p>
  
  <p>How to take the last part? The <code>myfolder</code> path.</p>
  
  <p>This must be simple but I couldn't find easy solution in shell. I know how to take care of this in java but not in shell.</p>
  
  <p>thanks</p>