source
source is a Linux command in the Shell & Scripting category, rated advanced difficulty. Executes commands from a file in the current shell session. The syntax is source filename [arguments]. Key options and parameters: filename — file with commands to execute. It returns output from the sourced file. A practical example: source ~/.bashrc source venv/bin/activate # Activate Python venv . ~/.profile # Dot is shorthand for source A close relative is echo, which displays a line of text. Used in scripts for output. A close relative is printf, which formats and prints data (like C printf). More control than echo. A close relative is export, which sets or exports environment variables for child processes. More about this category: Linux shell and scripting commands — bash, echo, export, alias, and more. Work with the shell environment and scripts. Related Shell & Scripting commands: echo, printf, export, alias, unalias, history, xargs, eval.