What is a .bashrc file? A bashrc file is shell script that Bash runs whenever it is started. Along with setting in the OS, the bashrc helps determine how your command line interface (CLI) or Terminal app looks and acts.
How do I create a .bashrc file? Just type notepad ~/. bashrc from the bash prompt and notepad will be launched with this file opened or will ask to create it, if it doesn’t exist. If you’re comfortable to vim, just type vim ~/. bashrc .
How do I run a .bashrc file? So, every time you need to initiate the . bashrc File from the beginning, you can do so by pressing Ctrl+Alt+T or opening a new terminal tab, making it all more accessible. At each launch, Bash runs the contents of the . bashrc file to load your preferences.
How do I view a .bashrc file? The quickest way to access it is nano ~/. bashrc from a terminal (replace nano with whatever you like to use). If this is not present in a user’s home folder the system-wide . bashrc is used as a fallback as it is loaded before the user’s file.