>_
linuxcommand.dev
Home
Roadmap
Contact
EN
German
DE
English
EN
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Direktlinks
Startseite
›
source
Command Line Interface (CLI)
source
Run shell scripts in the current shell.
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Arch
Alpine
macOS
Verified: 2026-03-04
Report error
Syntax
Copy
$
source <file>
Examples
$
source ~/.bashrc
$
source ./script.sh
$
. ~/.profile
See also
bash
.
exec
Typical use cases
?
Standard usage
source --help
Note
Runs scripts in the current shell.
Export
Text
JSON
Script