29 votes
BASH_PROFILE File - What is it and how do I open it?
Learn about .BASH_PROFILE files and view a list of programs that open them.
Languages
Overview
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 .
MacroMates TextMate 1.5.9 Icon
Breadcrumbs
Previous / Next
In-Depth
.BASH_PROFILE File Extension
Bash Interactive Login Shell File
| Developer | The GNU Project |
| Popularity |
3.7 | 29 Votes |
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 .
Open over 400 file formats with File Viewer Plus . Free Download
Programs that open or reference BASH_PROFILE files
Sort
Pricing
Program Name
Platform
Reset
X
Mac
Apple Terminal
Included with OS
MacroMates TextMate
Free
GNU Bash
Free
Linux
GNU Bash
Free
Category: System Files
Updated: August 18, 2010