2-Minute Linux Tips
Learn how to use a host of Linux commands in these 2-minute video tutorials from Sandra Henry-Stocker, author of the Unix as a Second Language blog.
How to source files on the Linux command line
Overview
In this Linux tip, we’ll look at how you can “source” files on the Linux command line. “Sourcing” means reading the file and running the commands that it contains – even if the file isn’t set up with execute permissions. There are two ways to do this. One involves using the source command as in the command “source myfile”. The second way is to replace the word “source” with a dot as in “. myfile”. The results will be the same.




