Unix

1:

The .(dot) shell command

A. Can take command line argument
B. Will fork a child shell to execute the named shell script
C. Can be used to change the environment of the current shell
D. All of the above
 

Answer : C

Explanation :
Any shell script will not be executed hy the current shell. The current shell forks a new shell that executes the named shell script and terminates after it. So, any variable exported in the shell script will not be recognized by the parent shell. The (dot) command makes the named shell script to be executed by the current shell. On the negative side . (dot) commands like( profile) don't accept command line arguments.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.