>_ linuxcommand.dev
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
Syntax
$source <file>
Examples
$source ~/.bashrc
$source ./script.sh
$. ~/.profile
Typical use cases
?
Standard usage
source --help
Note Runs scripts in the current shell.
Export