enter image description hereI installed jdk and somehow modified my path and now my terminal no longer has a prompt, it just says "Last login: Wed Jul 14 15:28:10 on console"

I created another user on my mac and that one has the correct prompt on the terminal. but i need to know how to fix it on my original user .

is there a way i can modify my user when im logged in as the other user in order to fix this ?

  • What shell are you using and what startup files have you got?
    – mmmmmm
    Jul 14, 2021 at 19:37
  • i tried terminal and iterm . i get the same results. where do i find the startup files?
    – Diana
    Jul 14, 2021 at 20:01
  • The shell is what is run by item and terminal. As for startup files they differ for exch set. A general comment would be if you are trying to use shell - you need to read a tutorial on at least startup files and environment variables. Also when provideing information please cut and paste text not images so that we can read them.
    – mmmmmm
    Jul 14, 2021 at 20:04
  • From the image you are using bash. The startupfiles are given here gnu.org/software/bash/manual/html_node/… The file executed as a login shell which terminal does should be ~/.bash_profile however if that does not exist it will read ~/.profile What is in those files in both your normal user and your new user?
    – mmmmmm
    Jul 14, 2021 at 20:08
  • 1
    Find it in Finder and click on it to open in TextEdit - You will probably need to press Cmd-Shift-g to enter the file name as it will be hidden
    – mmmmmm
    Jul 14, 2021 at 20:13

1 Answer 1


i used Ctrl, Shift . to see my hidden files and deleted my .bash_profile file which had some java things in there that i had put by mistake and now its fixed

  • 1
    Better to move you ~/.profile to ~/.bash_profile then when programs update you profile they don't stop your changes from being run
    – mmmmmm
    Jul 14, 2021 at 20:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .