# Source Command

I have been using this command but never knew what it actually meant

For example: `source ~/env/md/bin/activate`

"source" is a command in Unix-like operating systems (including Linux) used to execute commands from a file in the current shell session. In this case, it's sourcing the activation script for a virtual environment located at the specified path. This allows you to activate the virtual environment and utilize its configurations and dependencies in your current shell environment

## So what happens if you don't use source

If you don't use the "source" command (or its shorthand, ".") before executing the path to activate a virtual environment script, it won't work as expected. Without "source" or ".", executing the script would run it in a subshell, and the environment changes made by the script (such as modifying environment variables) would not persist in your current shell session. This is why "source" is used to ensure the script's effects are applied to your current shell environment.

## How to use "."

Using the "." (dot) command is an alternative to "source" for executing scripts in the current shell. Here's how you can use it to activate a virtual environment:

`. ~/env/md/bin/activate`

or

`source ~/env/md/bin/activate`

Both commands achieve the same result by executing the activation script in the current shell, allowing you to activate the virtual environment and use its configurations and dependencies within that shell session.
