Shell
source
Executes shell scripts in current shell
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Arch
Alpine
macOS
Verified: 2026-06-03
Syntax
$source <file>
Examples
$source ~/.bashrc
$source ./script.sh
$. ~/.profile
See also
Typical use cases
?
Standard usage
source --help
Note
Executes scripts in the current shell.
Export