source - read and execute a file in the current shell
source FILE | . FILE
Gotchas
- Unlike running the script, source changes THIS shell - variables and cd persist.
Taught in
Try source in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.