long filepath terminal trick

I work at a pretty big company, and we have pretty big servers, and sometimes a producer will send me a filepath that is well over 10 directories deep. That’s just too far for me to look at the email and then hunt and peck my way deeper and deeper until I find it. Here are two ways to do that faster.

The simplest way is to copy it and hit shift-command-g in the finder. Paste your filepath in there and hit return. There are a few ways it can get messed up, including if it doesn’t have the proper /Volumes/… prefix or if it uses spaces or non-escaped characters in the name. But try it. It works sometimes.

The other way is to open up terminal and type ‘open ‘ and then paste in your filepath and hit return. That ought to open the directory in finder for you.

For both ways you need to make sure you have a directory not a file, and escape characters can cause trouble, but it can save a ton of time if successful.

For a bonus mini-trick: dragging any file into the terminal window will show you its filepath. Super useful if you are pointing someone else to it.

~ by ross on June 22, 2011.

One Response to “long filepath terminal trick”

  1. Hi there,

    I wondered if you could please share your knowledge in terms FCP Storage. I work for a growing company, up until now, we have worked off of external desktop harddrives for all of our products, very risky and not very user friendly at all.

    We are now in a position to upgrade to a new storage system, and i wondered if you could shed some light on your Storage workflow for projects and any systems you could recommend, at the moment i am looking at NAS storage.

    Many thanks and thanks for the great site!


Comments are closed.