Commands 🢃3

Source Command

The source command can be used to read a file and treat its content as a set of commands to execute.

The dot or period “.” is a synonym for the source keyword.

When we run a script using the source command, all the commands are executed in the same shell. As a result, any variable that has been assigned a value in the script will retain its value after the execution is complete.

This is the main reason it’s popularly used to source environment variables into the current terminal session.

Sometimes, there’s confusion between the source and the bash commands because both can execute commands in a script. The key difference here is that the source command creates variables in the same shell, while t****he bash command creates a new shell and then executes all the script commands inside it.

Command List

ssh-keygen -t rsa -b 4096 -C "matias.micheltorena@gmail.com"