`.bashrc` is a configuration file in Unix-like operating systems that is executed whenever a new bash shell is started i
Brooks Computing Systems - Jacksonville
Visit Brooks Computing Systems
Mainframes, Desktops & Web Sites
`.bashrc` is a configuration file in Unix-like operating systems that is executed whenever a new bash shell is started interactively. It is typically located in the user's home directory (`~/.bashrc`). This file allows users to customize their command-line environment, set up aliases, define functions, and configure various shell options.
Here are some key points about `.bashrc`:
- Aliases: Shortcuts for frequently used commands.
- Functions: Custom functions to extend the functionality of the shell.
- Environment variables: Setting up environment variables specific to your user or project.
- Shell options: Configuring various shell behaviors, such as enabling tab completion.
# Alias for ls command with human-readable sizes and long format
alias ll='ls -lh'
# Function to quickly navigate to the home directory
function gohome() {
cd ~
}
# Set environment variable
export PATH=$PATH:/usr/local/bin
# Enable tab completion for git commands
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi source ~/.bashrcor equivalently,
. ~/.bashrc`.bashrc` is an essential tool for customizing your command-line experience and making it more tailored to your needs.
Quality, Reliability & Service Consultancy for Mainframes, Desktops & Web Sites