Get Name of Current Directory

The following gets you the full path…

pwd

example: /home/tim/my_project

What if you just want my_project? This comes in handy when writing
backup scripts for coding directories.

pwd | sed 's/.*\///g'