Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Updating the path in OSX Unix

I need to Add the ADK to my PATH and here are the instructions:

"The Android tools are needed in your path. In your home directory, edit your .profile or .bash_profile with your favorite text editor and insert the following lines."

But I can not find a .profile file to edit.

What can I do??

Thanks.

Also, what is the name of the UNIX inside OSX
SOLUTION
Avatar of lfreda
lfreda

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of curiouswebster

ASKER

Before I typed your command, I entered "env" and happily saw a list of path entries. But after I entered your command "env" resulted in:

-bash: env: command not found

Could I have wiped out the file? By chance I just bought a hard disk and had just got my first full backup completed before making this change. But that's a last resort.

Could I have damaged the file?

Is there a way to see the filename in Finder?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Yes, I did close terminal before typing enfv again, except I now see it shows up when I press Command Tab, but when I choose it in the tab order, no window appears.

And I get the same response:

-bash: env: command not found


when I type either of these:

defaults write com.apple.finder AppleShowAllFiles TRUE
<Enter>
killall Finder
 
or

defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
/opt/android-sdk/tools:PATH

this is the path I just added. But I thought the long list had others also in the path? I typed env and it produced about 20 lines.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
they are long gone. I  closed the window.
Is there a way to get it from TimeMachine? I finished a full backup minutes before trying to update the path.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of et01267
et01267

Oh, and on any unix you can type

uname -a

in any shell prompt and get info about the unix version.  On my mac, I get

Darwin <name of machine> 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
> export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/android-sdk/tools

Are those colons?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
and did my file get corrupted? I have a reservation at the Genius Bar this afternoon and will have a Mac expert take a look, and possibly help me to restore that file.
That's not to say you are not a Mac expert :) It sounds like you are.
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I will report back after my afternoon appointment with a Genius.

Thanks for all the help!
I just visited the Apple store and was advised to restore my disk from the original CD's that came with the machine. I thought that was extreme, but thinking back to my days woring with UNIX: you can restore a file, but if a single attribute is wrong on such an important file, it could be the end of my system. So I plan to run the restore...

Thanks.