Solved

Can I correlate folder names between Finder and Terminal?

Posted on 2012-04-07
3
502 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The error "There was an error performing the update" occurred on a Mac OS X client workstation running  Symantec AntiVirus for Mac (http://www.symantec.com/business/products/purchasing.jsp?pcid=pcat_security&pvid=825_1) - the Enterprise product vers…
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 > …
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

930 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now