Avatar of curiouswebster
curiouswebster
Flag 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
Mac OS XApple OSUnix OS

Avatar of undefined
Last Comment
curiouswebster

8/22/2022 - Mon
SOLUTION
lfreda

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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?

curiouswebster

ASKER
Is there a way to see the filename in Finder?
SOLUTION
lfreda

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
curiouswebster

ASKER
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
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
curiouswebster

ASKER
/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
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
curiouswebster

ASKER
they are long gone. I  closed the window.
curiouswebster

ASKER
Is there a way to get it from TimeMachine? I finished a full backup minutes before trying to update the path.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
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
curiouswebster

ASKER
> export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/android-sdk/tools

Are those colons?
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
curiouswebster

ASKER
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.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
curiouswebster

ASKER
That's not to say you are not a Mac expert :) It sounds like you are.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
curiouswebster

ASKER
I will report back after my afternoon appointment with a Genius.

Thanks for all the help!
curiouswebster

ASKER
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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.