Advanced topics
Bashrc¶
The .bashrc file is a script that runs every time a new interactive shell session starts in Linux, such as when you log in to the system using SSH. It is located in your $HOME directory (~/.bashrc) and is specific to the Bash shell, which is a common default shell.
The .bashrc file is primarily used to configure your shell environment, such as:
- Setting environment variables (e.g.,
$PATH,$LD_LIBRARY_PATH). - Defining aliases (shortcuts for commands).
- Customizing the shell prompt.(not recommended)
- Loading application-specific or user-defined scripts. (not recommended)
Warning
It is an absolute recommendation to not customize the ~/.bashrc file, or source any custom scripts with user defined paths, as this may cause the jobs to fail.