The File Extensions Database


.BASHRC File Extension

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

What is an .BASHRC file?

.BASHRC is Bash Non-Interactive Login Shell File

Shell file used by Linux and Mac OS X terminal applications; contains setup instructions for the shell, such as declarations for environment variables and default scripts to run; often used for setting user command prompt preferences as well as paths for common directories and program executables.

BASHRC files are executed automatically when a user creates a new shell that is a non-interactive login shell. In other words, BASHRC files run for every Bash command that executes after the terminal has been created. This can be useful for initializing the same settings for embedded shell scripts.

BASHRC files differ from .BASH_PROFILE files, which execute for interactive login shells (when a user enters login credentials or opens a new terminal).

NOTE: BASHRC files are hidden and do not contain a filename prefix. They always have the filename .bashrc and are located in the user's home directory.

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

How to solve problems with BASHRC files

  • Associate the BASHRC file extension with the correct application. On :
    Windows: Right click on any BASHRC file and then click "Open with" > "Choose another app". Now select another program and check the box "Always use this app to open *.BASHRC files". Mac: Right click (or Ctrl-click) the BASHRC 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 .BASHRC is Bash Non-Interactive Login Shell File. Because only the current version supports the latest BASHRC file format. Search, therefore, e.g. on the The GNU Project manufacturer website after an available .BASHRC is Bash Non-Interactive Login Shell File update.
  • To make sure that your BASHRC file is not corrupted or virus-infected, get the file again and scan it with antivirus software.