When beginning to use the terminal, we might accidentally delete our .bashrc file. What is the .bashrc file? The .bashrc file is a configuration file used by the bash shell. It contains all the environment variables, user defined functions, aliases and other config including the prompt layout. It is a full-fledged shell script, so we can have custom commands in it as well, which runs all the commands when a new process of the shell is started.