Geek Posted March 2, 2011 Posted March 2, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/03/drag-file-into-terminal-for-path.jpg" alt="drag-file-into-terminal-for-path" title="drag-file-into-terminal-for-path" width="620" height="251" class="aligncenter size-full wp-image-13341" /></p> <p>You can instantly print an items full path in the Terminal by dragging and dropping any Finder item into a Terminal window. </p> <p>In the screenshot above, I have dragged Quartz Composer into a <a href="http://osxdaily.com/category/command-line/">Terminal</a> tab while nano was open. The full path is then typed out automatically, as shown in the screenshot below:</p> <p><img src="http://osxdaily.com/wp-content/uploads/2011/03/file-path-dragged-file-terminal.jpg" alt="file-path-dragged-file-terminal" title="file-path-dragged-file-terminal" width="619" height="210" class="aligncenter size-full wp-image-13342" /></p> <p>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.</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/yKjk62YjWlM9KK5nzRoxIy_awh8/0/da"><img src="http://feedads.g.doubleclick.net/~a/yKjk62YjWlM9KK5nzRoxIy_awh8/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/yKjk62YjWlM9KK5nzRoxIy_awh8/1/da"><img src="http://feedads.g.doubleclick.net/~a/yKjk62YjWlM9KK5nzRoxIy_awh8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=nz3GRKP8aSc:mPyED1c0F-I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=nz3GRKP8aSc:mPyED1c0F-I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=nz3GRKP8aSc:mPyED1c0F-I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=nz3GRKP8aSc:mPyED1c0F-I:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=nz3GRKP8aSc:mPyED1c0F-I:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=nz3GRKP8aSc:mPyED1c0F-I:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=nz3GRKP8aSc:mPyED1c0F-I:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/nz3GRKP8aSc" height="1" width="1"/> View the full article
Recommended Posts