Solved

Can I correlate folder names between Finder and Terminal?

Posted on 2012-04-07
3
539 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
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 > …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

695 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