Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to install xdebug here on my Mac (Macbook pro 8,1 13" running OS X 10.6.6), but I need to get into my applications folder in order to get to my phpize file.

When I type % cd /users/applications in my terminal it sure takes me to my applications folder, but then when I type ls the terminal returns some unique number between curly brackets followed by Applications.localized while I was expecting a list of the contents of applications.

What's happening?

share|improve this question

migrated from stackoverflow.com May 12 '11 at 17:09

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

try cd /Applications and then ls

share|improve this answer
1  
This is correct. By default applications in OSX are stored in /Applications. Also, "ls /Applications" will provide you with the same results. –  jtm May 12 '11 at 17:39
add comment

/users/applications is not likely to be your Applications folder. The main Mac Application folder is /Applications. Home folders are stored in /Users (so one would expect /Users/applications to be the home folder for the user with short username applications). You might have a folder called Applications in your home folder (i.e. /Users/[yourusername]/Applications, or ~/Applications for short) - CrossOver puts stuff there, for instance. Finally, Unix-style command line programs are stored in a variety of places (some of which are hidden in the Finder) such as /usr/local/bin or ~/bin, more or less corresponding to the Unix directory structure.

As an alternative, if you have access in the Finder to the folder containing the file you want, you can add it to a command line by simply dragging it onto the Terminal window. For instance, to cat a file you would type cat (note the trailing space), then drag the file onto the Terminal window from the Finder. It will be replaced with its full path, and you can then run the command.

Bear in mind that you don't need to be in the same directory as a file to reference it - just provide a full path (i.e one that begins with /) or use ../ to refer to a relative parent directory (but beyond one or two levels the latter quickly gets confusing).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.