Americas

  • United States

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.

Register Now