Question: Assume that you create a new script and place it in a directory that is listed in your shell $path variable. Which if the following
Assume that you create a new script and place it in a directory that is listed in your shell $path variable.
Which if the following is true regarding running the new script?
a New scripts cannot be added to a directory that is already in your path. You must create a new
directory to hold the script, and then add that directory to your path.
b Because the script is in a directory in your path it can be run at any time by typing the script name.
c The only way to get your shell to recognize the new script is to restart the shell process by logging
out and logging back in
d You can run the script by typing the script name, but only if you restart the shell or run the rehash
command first.
e None of the above
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
