Drag & Drop Finder Items into the Terminal to Automatically Type their Full Path

You can instantly print an items full path in the Terminal by dragging and dropping any Finder item into a Terminal window.
In the screenshot above, I have dragged Quartz Composer into a Terminal tab while nano was open. The full path is then typed out automatically, as shown in the screenshot below:

The next time you’re in the Finder and want to access a file or directory within the terminal, try this out, I find it’s quicker than using tab completion for deeply buried files.

nice trick
wow, what a kewl trick! leave it to Apple…
[...] If you want to use a text file that is buried deep somewhere on your Mac, remember you can drag and drop the icon into the Terminal to display it’s full path. [...]
[...] approach would be to type “cd ” followed by dragging a folder into the terminal to print the full path, then hitting return to get the same result. [...]
[...] is to type the first part of the command then drag and drop the file into the Terminal window. This automatically types the path for [...]
[...] new to the Terminal, remember that dragging & dropping files into the Terminal window will print their full path, making it easy to point to source files and preventing any navigation through the command [...]
[...] you know the path to the file just type it yourself. If you don’t, follow the drag & drop method to automatically type the entire path within the Terminal, just be sure to drop it in after the [...]