• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. Using Basic Unix Commands > Getting the Directory Location

Getting the Directory Location

Sometimes moving into another directory using the Terminal utility is not the hard part, typing in the correct path is. This is where you'll use a combination of the Macintosh Graphical User Interface, and the Terminal window. When you drag a folder, file, or application into the Terminal window, you'll see the exact path to that item. The drag and drop method of identifying location is an excellent way to determine the exact path structure to any item on a Macintosh computer. In addition, if you first type in a command such as cd (change directory), you can drag an item into the terminal and execute the command on the selected item.

Get the Directory Location

Open the Applications folder, double-click the Utilities folder, and then double-click the Terminal icon.

Open a folder window, and drag a file, folder, or application into the Terminal window, and then press Return.

The Terminal window displays the exact path to the item and shows the command line.

Type ls, and then press Return.

Click the Close button.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint