How can I regain control of .bash_profile after making changes to $PATH?

Hi,
Today, I installed Android ADB on my MBP (late 2013) and used the following guide to get it started: http://www.droidviews.com/a-comprehensive-guide-to-adb-android-debug-bridge-and- commands/ - that guide said I should make a change to ~/bash_profile in order to get the settings right. Here's what I did (copied from the link):
Open terminal window and type following: nano ~/.bash_profile
This shall open the .bash_profile file. Now enter the following line to define ADB path. export PATH=${PATH}:~/android-sdk-macosx/tools export PATH=${PATH}:~/android-sdk-macosx/platform-tools
Then, I saved and closed the terminal window.
Now, I cannot use a lot of terminal commands anymore - sudo, latex, rm, all only give me:
-bash: latex: command not found
If I try to access ~/.bash_profile, I get the following error:
-bash: /Users/richard/.bash_profile: Permission denied
I tried this:
RMBP:~ richard$ echo $PATH
{PATH}:/Users/richard/android-sdk-macosx/platform-tools
which only shows me that I have changed the path.
Is there any way I can regain access to the .bash_profile file and control over the Terminal in general?
Any help would be highly appreciated, thanks in advance!

I solved the problem, it seems, by doing the following:
I found the defective .bash_profile file by using Omni Disk Sweeper, and deleted it right away. Someone else here in the support forum had a similar problem and solved it this way, so that's how I got the idea. The Terminal works nicely now and no other signs of trouble have come up yet.

Similar Messages

  • How can I regain access to a MAC account? -- Macbook Pro?

    Situation:  My wife has a 13" Mac Book Pro, that we received in May 2011.
    OS: Mac OS X Snow Leopard (not sure which version it came with -- 10.6?)
    My wife's computer had two administrative accounts.  She uses one regularly, and the other is the 'primary' account for downloading updates and such.
    She was unable to figure out how to use Time Machine or any of the other backup software and the like.
    Yesterday, she updated to OS X Lion, and found that a number of the programs that she enjoys using no longer function.
    She wanted to roll-back to Snow Leopard.  After transferring the majority of the 'must-save' files, she put in the install disk again for snow leopard.  This allowed her to start fresh, however, she wants to regain access to those old accounts.  She tried, but, none of the passwords work anymore.  We know what the passwords are; but, they are not working.
    Our ATTEMPTED solution:  She found a site "http://en.kioskea.net/forum/affich-7339…  This site told her to do something in the boot terminal that allowed her to add a new administrative account.
    She tried going into that new admin account and changing the passwords to the other accounts; no joy.  She changes them, but, they are not retained when she logs off or restarts.
    How can she regain access to her old files?

    Open itunes.  Sign into your account.

  • HT1926 My installation of Itunes to syne my iphone with PC was missing AppleApplicationSupport.msi  after 2 installs how can I install such a file do you have a path for this

    My installation of Itunes to syne my iphone with PC was missing AppleApplicationSupport.msi  after 2 installs how can I install such a file do you have a path for this

    Hi kensb!
    I would recommend that you attempt to reinstall all of the programs and components of iTunes on your machine and reinstall everything again. It can be tricky to get everything uninstalled, so we have an article that can help you make sure you uninstall everything:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/ht1925
    or
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/ht1923
    Specifically, when it comes to uninstalling, you will want to uninstall applications in this order:
    Use the Control Panel to uninstall iTunes and related software components in the following order. Then, restart your computer.
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended effects.
    You will then want to follow the links in those articles to download the latest package of iTunes software for your computer and install again from there. Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • HT1414 how can i activate my iphone 3gs after upgrading to ios6? it could not activate....

    how can i activate my iphone 3gs after upgrading to ios6? it could not activate....

    If your phone was previously hacked to unlock it, when you updated the hack was removed and it's re-locked to the original carrier.  The phone will now activate and operate only with that original carrier.

  • How can i reset my icloud account after I locked it

    How can i reset my icloud account after i locked it

    What do you mean when you say your iCloud account is "locked"?

  • How can i run a executable right after a rman job has run?

    How can i run a executable right after a rman job has run?
    I have a rman job that execute every night. The backup is local.
    I want to have a duplicate of the backup on another machine.
    I want the executable to sync the directory to execute right after the rman backup.
    How can i do this using the job scheduler?
    Normaly, i would configure rman to run the backup on both location. But im having trouble with rman regarding this:ORA-600 [2103] on RMAN Backup to NFS mounted file system

    Hi,
    If the rman job is in fact a Scheduler jobs (appears in the dba_scheduler_jobs view) then you can create a second event-based job that runs after the rman job (and set the raise_events attribute for the rman job).
    Instructions are here
    Create Event based job
    Hope this helps,
    Ravi.

  • How can you get a calendar back after deleting it

    How can you get a calendar back after deleting it

    You will have to restore the device from a backup on icloud.  (this assumes you have backups turned on in settings>icloud)
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.

  • How can i get back my data after i restored my iphone and accidentally created a new iphone ac.

    how can i get back my data after i restored my iphone and accidentally created a new iphone ac.
    it did a back up when i started my restored iphone and i cant retrieve my previous backup while i didnt back up on icloud....
    the new ac is actually the same apple id as the one i used. I lost all my contact, photos and data of whatsapp...
    what can i do...help!

    I don't know if this is a similar problem but I wrote 2 notes yesterday on my iphone. I opened my mail to print them and they appeared as notes but wouldn't load. Then I looked at them on my iphone and I could see the notes but they quickly updated to blank with a time of the last edit the same time I tried opening them on my computer.
    Yesterday I updated to 4.3.4  I don't know if somehow that affected them. Are they stored somewhere else. Can I get them back?

  • Hi, may i know how can i get all data back after update ios 6

    Hi,
    May i know how can i get all data back after update ios 6 and all my data lost ?

    You can restore the phone and when prompted to restore choose from icloud account. BUT MAKE SURE there is 1.) an icloud backup for your phone. 2.) you are using the same apple id.
    apl

  • How can I get my texts back after IOS update?

    How can I get my texts back after an IOS update?

    Hi Clembo60,
    Welcome to the Apple Support Communities!
    I understand that your text messages are missing after an update on your iPhone. If you have a backup of your device on either iTunes or iCloud, you can restore from that backup and bring your information back. Please review the attached article, which covers how to back up and restore from backups, for more information. 
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    Best regards,
    Joe

  • How can i avtive my iphone 4s after unlocked by carrier?i got the message my request couldnt be process,try later

    how can i avtive my iphone 4s after unlocked by carrier?i got the message when i connect it to itunes:'
    Your request couldn’t be processed.
    We’re sorry, but there was an error processing your request. Please try again later.
    imei number 012937001431948

    iOS: Resolving activation messages
    try to follow this

  • How can i retain the trailing zeroes after decimal

    how can i retain the trailling zeros after decimal?
    values are showing in table like( 4.50,5.00) but i am trying to do some processing with these values then ithe zeroes are truncated like (4.5,5),
    how can i get values with zeroes

    If the values in the table have trailing zeroes, it's a character type column.
    Once you perform operations on them, they're implicitely converted to the number type, hence "losing" trailing zeroes.
    To get the trailing zeroes back, you have to convert them back to character data:
    TO_CHAR(1.5*3, '90d99')Have fun,
    K.

  • How can i add control at runtime??

    hi,
    please help me! how can i add control(textfield, dropdownlist or subform...) at run time???
    thanks

    this option had no relation about editing items or not , i hadn't notice it was accessible true pop up
    when you rigt click is properties disable also ?
    may be i 'm wrong i talking about that :
    see attachement
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    example.jpg ‏57 KB

  • I don't find my app in itunes how can i regain the app??

    i don't find my app in itunes how can i regain the app??

    As long as it's still available in the app store, and you use the same iTunes account as you originally used to buy/download it, then you should be able to re-download it for free : http://support.apple.com/kb/HT2519

  • How can I unfreeze my iphone 5 after trying to download OS update?

    How can I unfreeze my iphone 5 after trying to download OS update?
    I've got the black screen with the white Apple and the horizontal download bar (little white dot at the left end).
    I pllugged it in, selected the OS update and after about an hour nothing happened so I diconnected it from the charger.
    The phone won't start, stop, shut down, or continue.
    Can anyone help, make a suggestion?
    Thanks in advance....:)
    Marshall

    modular747,
    Had same problem, got answer from supprot community and it worked.
    Hold down your power bar (on top) and your Home button (on face at bottom) for about 10 - 20 sec. and your phone will be restored - nothing lost or changed.  Worked like a charm for me 20 sec ago.
    Good luck

Maybe you are looking for

  • Can I use iTunes Match to add songs from another computer

    Now that I have iTunes Match running on my home and work computers can I add songs to my library from either one. I often get (non-iTunes) music while I'm at work and want to put it on my iPhone right away, but since my phone is synced to my computer

  • Extra Tag Getting Added while invoking a Web service

    Hi all, We are facing an issue while trying to invoke a web service. We are assigning values to invoke input variable of the invoke. The issue is that while invoking an Extra element named "input" is getting added. For Eg: The required one is <messag

  • How to create a method with an interface parameter?

    Hi there. I would create a method with an interface parameter. I mean this: public interface MyInt {     public void method(int i); public class SubClass implements MyInt {     public void method(int i) {         System.out.println("The number is: "

  • Steam related FM2011 problem.

    Can someone help me? I can't seem to open my steam. I can't play FM2011. Process: steam [171] Path: /Applications/Steam.app/Contents/MacOS/osx32/steam Identifier: com.valvesoftware.steam Version: ??? (1.1) Code Type: X86 (Native) Parent Process: bash

  • How to play sounds on Frames

    I'm been working with sounds on applets and is pretty easy play sounds and build funny stuff. But now i need to play sounds on a Frame (Application) and i realize that sounds can be load only on applets(so far thats what i know) If anyone knows how p