Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

source

Execute script file in current shell

Syntax

source FILENAME [ARGUMENTS]... | . FILENAME [ARGUMENTS]...

Common Options

. FILENAMESame as source, dot shorthand

Common Examples

source ~/.bashrc

Reload bashrc config

. ~/.bash_profile

Load bash_profile

source env.sh

Load environment script

source activate

Activate Python venv

source ~/myenv/bin/activate

Activate specific venv

. ./config.sh

Load config script

source setvars.sh arg1 arg2

Execute script with args

source ~/.nvm/nvm.sh

Load nvm

Related Commands

Related Tools

More Code & Dev Tools