Bird
0
0

You added source ~/.bashrc to your .bash_profile, but aliases from .bashrc are still not available after login. What is the most likely problem?

medium📝 Debug Q14 of 15
Linux CLI - Environment and Configuration
You added source ~/.bashrc to your .bash_profile, but aliases from .bashrc are still not available after login. What is the most likely problem?
AYou forgot to log out and log back in after editing .bash_profile.
BThe .bashrc file has incorrect permissions and cannot be read.
CThe source command is misspelled in .bash_profile.
DAliases must be defined in .bash_profile, not .bashrc.
Step-by-Step Solution
Solution:
  1. Step 1: Check if changes require re-login

    Changes to .bash_profile only take effect after a new login session, so you must log out and back in.
  2. Step 2: Verify other options

    Incorrect permissions would cause errors, misspelling source would cause errors, and aliases are correctly placed in .bashrc.
  3. Final Answer:

    You forgot to log out and log back in after editing .bash_profile. -> Option A
  4. Quick Check:

    Changes in .bash_profile need re-login [OK]
Quick Trick: Log out and back in to apply .bash_profile changes [OK]
Common Mistakes:
  • Not logging out after editing .bash_profile
  • Assuming aliases must be in .bash_profile
  • Ignoring file permission issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes