The File Extensions Database


.BASH_PROFILE File Extension

  • Developer by: The GNU Project
  • Category: System Files
  • Format: Text

What is an .BASH_PROFILE file?

.BASH_PROFILE is Bash Interactive Login Shell 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.

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.

Programs that open Bash Interactive Login Shell File
Mac
Apple Terminal
MacroMates TextMate
GNU Bash
Linux
GNU Bash

How to solve problems with BASH_PROFILE files

  • Associate the BASH_PROFILE file extension with the correct application. On :
    Windows: Right click on any BASH_PROFILE file and then click "Open with" > "Choose another app". Now select another program and check the box "Always use this app to open *.BASH_PROFILE files". Mac: Right click (or Ctrl-click) the BASH_PROFILE file, then click "Open with" > "Other...". Then choose another program and check the "Always Open With" box. Linux: Right click on the file, and select "Open with" and choose another program. iPhone: Tap the file. If you do not see an app to open the file, then tap Share "Share" and choose an app. Alternatively, save the file. Then open the Files app Files app. There long-press on the file, then release your finger. You will see a black menu bar. Then tap "Share" and select an app. Android: Tap the Settings icon on your smartphone, then tap on the Apps section. There tap the Options icon in the top right-hand corner of the screen to change the default apps.
  • Update your software that should actually open .BASH_PROFILE is Bash Interactive Login Shell File. Because only the current version supports the latest BASH_PROFILE file format. Search, therefore, e.g. on the The GNU Project manufacturer website after an available .BASH_PROFILE is Bash Interactive Login Shell File update.
  • To make sure that your BASH_PROFILE file is not corrupted or virus-infected, get the file again and scan it with antivirus software.