$
Apprendre Manuel Linux
fr
XP :0
Quête 119Config Reloader
+200 XP

Reloading Shell Configs (source & .bashrc)

Lancer le terminal interactif pour cette quête→Aucune installation requise • S'exécute dans le navigateur

Concept et aperçu

When you edit your startup scripts like ~/.bashrc to add new environment variables or aliases, those changes do not automatically affect your current shell session. Traditionally, users had to log out and log back in. In Linux, we use the source command (or its POSIX shorthand .) to read and execute commands from a file directly in the current shell context.

- Syntax: source ~/.bashrc or . ~/.bashrc
- This loads newly defined variables, updated $PATH directories, and aliases immediately without killing your session.

Let's reload your shell configuration without logging out. Apply the settings in your home configuration file by running source ~/.bashrc (or . ~/.bashrc).

Référence de syntaxe des commandes

Command / SyntaxDescription
source ~/.bashrcExecute commands from .bashrc in current shell
. ~/.bashrcPOSIX dot alias for source command

Objectifs de vérification

  • ○
    Run source ~/.bashrc or . ~/.bashrc

Prêt à terminer la Quête 119?