Open the Current Finder Window in the Terminal with cdto
Need to access the current Finder directory immediately within the Terminal? While newer Mac OS X versions have an option to enable “New Terminal at Folder” in Services, prior releases do not, so instead you can get cdto, it’s one of those must-have apps for anyone who’s constantly switching between the command line and the Finder.
Installing cdto is simple, just download the app and place it somewhere in your Applications or Utilities folder, then drag the app directly into your Finder toolbar.
Now anytime you want to open any Finder window within with the Terminal, click the cdto icon and a new Terminal session is started with the PWD set to the same folder that you were using in the Finder.
This is likely most useful for prior releases of OS X, but you can still use the utility in modern versions of Mac OS as well.
You could also try OpenTerminal which is available at http://homepage.mac.com/thomasw/OpenTerminal/
Can be done QuickSilver for ages
Without any software, you can drag-and-drop any finder folder to an open terminal window and the full path is pasted into the terminal. If you had already typed cd and a space, now you can just hit enter.
What I would like to know is how to do the opposite. In a terminal, issue a CLI command to launch the finder open to your terminal’s working directory.
open .
Use posd and a .profile alias – e.g. see http://dl.dropbox.com/u/670432/cdf.txt
DTerm is also quite handy http://www.decimus.net/dterm.php