Solved

Can I correlate folder names between Finder and Terminal?

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
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…

705 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

18 Experts available now in Live!

Get 1:1 Help Now