Copy a File or Folder Path to the Terminal by Dragging and Dropping
You can quickly copy a files path to the Terminal by dragging and dropping the folder or file into the Terminal window. This is particularly helpful when a file is located in an obscure location. I thought we had written about this tip a long time ago but after seeing it posted on Lifehacker I realized it wasn’t, oops! For what it’s worth, this technique works across platforms, even in Windows with the DOS prompt, whoopy.