Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Terminal .profile: No such file or directory

Hi, when I run Terminal I got this message:

Last login: Tue Apr 14 09:41:36 on ttys000
-bash: /Users/user/.profile: No such file or directory


Does someone know why and how can I fix it?

Thanks in advance.

MacBook Pro 15", macOS 10.14

Posted on Apr 15, 2020 1:23 AM

Reply

Similar questions

4 replies

Apr 15, 2020 2:06 PM in response to alessio84

No shell initialization file is every provided by default.


bash should NOT be complaining if one does not exist.


The fact that you got an error message says something else is wrong on your system.


Did the error message really say

/Users/user/.profile

Or did you substitute 'user' for your real macOS username?


This is important, as error messages can have useful information in them.


Have you been installing 3rd party software that is run via the Terminal and tries to setup values in .profile?


Do you have a

  • .bash_profile
  • .bashrc
  • .bash_login


They are not there by default, but if they do exist, then the shell will run them (Maybe) and if they do, it is possible one of them is asking to source .profile

Terminal .profile: No such file or directory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.