Skip navigation

I cannot use the ~/.bash_login in Terminal

358 Views 4 Replies Latest reply: Feb 8, 2013 7:01 AM by Linc Davis RSS
alfredfromthornhill Calculating status...
Currently Being Moderated
Feb 7, 2013 1:29 AM


i want to install the andriod SDK and get the emulator for the purpose of the mobile programming.

But I have a big problem to use the ~/.bash_login or ~/.profile or ~/.bashrv to login and assign the $PATH.



Inside the Terminal_Bash window:

Last login: Thu Feb  7 04:21:45 on ttys004

Paul-Lees-MacBook-Pro:~ paullee$ ~/.bash_login

-bash: /Users/paullee/.bash_login: No such file or directory

Paul-Lees-MacBook-Pro:~ paullee$


All the time it show the error "no such file or directory"...How can I fix this problem?


Alfred Li

MacBook Pro, Mac OS X (10.5.8)
  • Linc Davis Level 10 Level 10 (107,630 points)

    Back up all data.
    Shell ▹ New Command
    from the Terminal menu bar. Copy and paste the following line into the text box that opens:
    mkdir disabled_shell_files; mv .profile .bash* $_
    Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory.

  • Linc Davis Level 10 Level 10 (107,630 points)

    You are not ready to use the shell. I can't teach you how to use it here. You need to work through a book, with exercises. If there's a specific task you need to do right away, I may be able to give you a copy-and-paste solution.


    Shell Scripting Primer: Introduction


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.