title: Bash - Get Current Directory or Folder Name (Without Full Path) In Bash Script
body: <p>How could I retrieve the current working directory/folder name in a bash script, or even better, just a terminal command.</p>
  <p><code>pwd</code> gives the full path of the current working directory, e.g. <code>/opt/local/bin</code> but I only want <code>bin</code></p>
  <p>Thanks.</p>