Understanding and Using .bashrc and .bash_profile
📖 Scenario: You have just started using Linux and want to customize your command line environment. You want to learn how to set up environment variables and aliases that load automatically when you open a terminal or log in.
🎯 Goal: Learn how to create and edit .bashrc and .bash_profile files to customize your shell environment. You will create environment variables and aliases, and understand when each file is used.
📋 What You'll Learn
Create a
.bash_profile file with a custom environment variableCreate a
.bashrc file with a custom aliasConfigure
.bash_profile to load .bashrcDisplay the values of the environment variable and alias to verify setup
💡 Why This Matters
🌍 Real World
Customizing your shell environment makes your work faster and more comfortable by automating common tasks and setting preferences.
💼 Career
Many IT and developer jobs require knowledge of shell configuration to optimize workflows and manage environments efficiently.
Progress0 / 4 steps