Question: 1 . What is the purpose of the PATH variable? a . Set the PATH variable so that it causes the shell to search the
What is the purpose of the PATH variable?
a Set the PATH variable so that it causes the shell to search the following directories in order:
usrlocalbin
usrbinX
usrbin
bin
DeveloperTools
The bin directory in your home directory
The working directory
b If there is a file named doit in usrbin and another file with the same name in your ~bin which one will be executed? Assume that you have execute permission for both files.
c If your PATH variable is not set to search the working directory, how can you execute a program located there?
d Which command can you use to add the directory usrsbin to the end of the list of directories in PATH?
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
