Home : File Types : BASH_PROFILE File

.BASH_PROFILE File Extension

File TypeBash Interactive Login Shell File

DeveloperThe GNU Project
Popularity
4.2 (20 Votes)
CategorySystem Files
FormatText

Text

This file is saved in a plain text format. You can open and view the contents of this file using a text editor.

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
fi

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.

FREE DOWNLOAD
Open over 300 file formats with File Viewer Plus.
Programs that open BASH_PROFILE files
Mac
Apple Terminal
MacroMates TextMate
GNU Bash
Linux
GNU Bash
Updated 8/18/2010

About the file extension bash_profile

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 do not publish any information we have not been able to verify.

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