Usage of source command in unix

What is the use of "source" command apart from running the script in current shell?

Questions by nayakss   answers by nayakss

Showing Answers 1 - 6 of 6 Answers

The soure command is used for two ways.

     1. If you want run the more than one command at the time. then you should write the commands in one file. which is run by source command.

    2. If you connect any database server through unix server. then you can run source command if any file contains more than one commands.

  Was this answer useful?  Yes

This command takes the concept of specified file and passes it to the interpreter as text script. The return value of this would be the last command executed in the script.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions