What does it mean to source a file in Linux?

What does it mean to source a file in Linux?
Answer
Sourcing a file is
nothing but executing the file, more importantly making the changes of the file applicable in the current shell itself, the shell which we are working in. Usually, when we execute a command or a script, a new sub-shell is created and the script is executed in the sub-shell.
 

Tìm kiếm

Back
Top