source fileArguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
source ~/.bashrcApplies changes from ~/.bashrc to the current shell.
source .envRuns assignments from .env in the current shell. Only do this with trusted files.
| Field | Details |
|---|---|
| Command | source |
| Category | Shell and Environment |
| Primary use | Runs a script in the current shell. |
| Syntax | source file |