Question: 1 . What is the purpose of the PATH variable? a . Set the PATH variable so that it causes the shell to search the

1. 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:
/usr/local/bin
/usr/bin/X11
/usr/bin
/bin
/Developer/Tools
The bin directory in your home directory
The working directory
b. If there is a file named doit in /usr/bin 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 /usr/sbin 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!