This question already has an answer here:

On a linux system what is the purpose of the .profile file I know a small amount on this topic but I need an explanation of the purpose of the .profile file and a explanation of the contents.

marked as duplicate by George Udosen, mikewhatever, waltinator, andrew.46, Charles Green May 8 '17 at 1:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


The profile file is dotfile (filename starts with a period, so the command ls will not show it by default) that the shell being used looks for and executes when the user logs in and starts the shell session. The file will contain the users customisations for the shell, such as their shell prompt and any aliases they have made. It is usally located at ~/.profile (specifically ~/.bash_profile for bash) however modern shells usually have more advanced configuration options and often have plugin managers (fsh and zsh are notable examples) Thats all I know about it hope it helps

Not the answer you're looking for? Browse other questions tagged or ask your own question.