Home : File Types : BASH_PROFILE File

.BASH_PROFILE File Extension

File TypeBash Interactive Login Shell File

DeveloperThe GNU Project
3.9 (23 Votes)
CategorySystem Files

What is a BASH_PROFILE file?

Shell file used by Mac OS X and Linux terminal programs; stores setup instructions for the shell environment, such as environment variables and default scripts to execute; commonly used for setting user command prompt preferences as well as file system paths for directories and program binaries.

More Information

BASH_PROFILE files are automatically run for interactive login shells. In other words, they are executed after a user logs in with their login credentials, or when a new terminal window is created. This differs from .BASHRC files, which are run only when Bash shell scripts are executed within a terminal that is already open.

Since users often want to run both BASH_PROFILE and BASHRC files upon login, they often include the following segment in the BASH_PROFILE file, which forces the BASHRC file to be run when only the BASH_PROFILE file is executed:

if [ -f ~/.bashrc ]. Then
  source ~/.bashrc

NOTE: BASH_PROFILE files are hidden in a user's home directory and do not contain a filename prefix. They always use the filename .bash_profile.

Open over 300 file formats with File Viewer Plus.

Programs that open BASH_PROFILE files

Updated 8/18/2010


Our goal is to help you understand what a file with a *.bash_profile suffix is and how to open it.

The Bash Interactive Login Shell file type, file format description, and Mac and Linux programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.