Solved

Can I correlate folder names between Finder and Terminal?

Posted on 2012-04-07
3
528 Views
Last Modified: 2012-04-08
In Windows I can copy a URL to the clipboard using Windows Explorer, then copy the folder into a DOS command window. That saves me lots of time.

Can I do this with Mac Lion?

Thanks.
0
Comment
Question by:newbieweb
3 Comments
 
LVL 53

Accepted Solution

by:
strung earned 300 total points
ID: 37820498
Just drag the folder into the terminal window
0
 
LVL 8

Assisted Solution

by:Mac2010
Mac2010 earned 200 total points
ID: 37820656
Another time saver is the Tab key. If you know the file/folder path…

Let's say you want to access "Testfolder" in your personal Library folder. Drag and drop is not easy here because the Library folder is hidden by default (in Lion). If you type the full path you will need to type :
/Users/yournamehere/Library/Testfolder/    [and keep in mind this is all case sensitive]

In this example you can make it a bit shorter by replacing /Users/yournamehere/ with the ~/ keys. So then the path becomes:
~/Library/Testfolder

And this goes even faster if you hit the tab key after typing the first two letters, like in: this command:
cd ~/Li(tab)/Te(tab)
If you open a new terminal window, or the prompt is already at it's default location (your home folder) ~/ is not needed here.

This will send the command prompt to ~/Library/Testfolder/

Using the tab key also prevents many errors caused by typos. Sometimes you can use the tab key after typing just one letter; somtimes you need more than two letters, like when two folder- or filenames start with the same letters. As in "Folder1" and "Folder2". Just play with the tab key and the terminal will let you know when there is an ambiguity with names.
0
 

Author Closing Comment

by:newbieweb
ID: 37821070
Thanks!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes in detail how to set up the iPad in the Enterprise using iPCU aka iPhone Configuration Utility.  This could also be used for the iPhone although I have not detailed out any differences. Preparation as an iPad Administrator:…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question