When you dig a few levels deep into the Finder, you may lose your path. Sure, you could enable the Path bar by going to View > Show Path Bar,…

Terminal Hack: Show path in finder title bar
When you dig a few levels deep into the Finder, you may lose your path. Sure, you could enable the Path bar by going to View > Show Path Bar, but you can also enable the Path view in the less-obtrusive title bar.
Enable Command:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
Reversal Command:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO